Optimize, OutOfMemory + Merge

2005-09-05 Thread Martin Rode
Hi all, The code snipset below does NOT result in an optimized index in one of my test cases. As I understand, the optimized index, means that there is only ONE segment file in the index folder. After this code has run, I sometimes have 100 segment files in the directory. When I call optimiz

Did you mean?

2005-08-29 Thread Martin Rode
Hi everybody, Has anyone tried to code a solution like Google's "Did you mean?" in Lucene? I would be very happy to hear your ideas, approaches, suggestions. Best, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Re: Document visible by Term, but not search

2005-08-25 Thread Martin Rode
You can also use the PerFieldAnalyzerWrapper to search in KeywordFields using QueryParser. Best, Martin Vanlerberghe, Luc wrote: Is your Analyzer aware that that particular field does not need to be tokenized? During indexation, if a field is passed that is passed as tokenize=false, the ana

performance: gcj, sun, ibm ?

2005-08-04 Thread Martin Rode
hello all, lucene is already pretty fast, but i was wondering if you guys have experience with using gcj (on linux). how much faster is it for indexing? personally i have best performance with java-ibm, at least under linux. it would be interesting to hear how your experiences are. thanks i

Re: SV: Search in multi fields with cross field AND ?

2005-08-04 Thread Martin Rode
Hi Erlend, In my case "text" is everything. Whenever I add anything to the index, I also add a "text" Field. So in your case, I would build the index like you did with an additional doc.add(Field.Text("text", bean.getCompanyName())); after each addition. If you then search, the "text" will g

Re: Search in multi fields with cross field AND ?

2005-08-04 Thread Martin Rode
Erlend, try this code: QueryParser q = new QueryParser("text", analyzer); q.setOperator(QueryParser.DEFAULT_OPERATOR_AND); Query query = q.parse(search); Hits hits = isearcher.search(query); Best, Martin [EMAIL PROTECTED] wrote: Hi there! I'm fairly new to Lucene and trying

Re: European Languages search problem

2005-07-28 Thread Martin Rode
ing accents from characters, somebody posted ISOLatinFilter.java (I think that was the class name) a few months back. If you can contribute your Analyzers, that would be great, as we already have a small set of Analyzers in Lucene's contrib area in SVN. Otis --- Martin Rode <[EMAIL P

European Languages search problem

2005-07-28 Thread Martin Rode
Hello everybody, First of congrats for that great piece of software! I am working on a Europe-wide project, where we have texts on more than one European language, namely French, German, and English. Having tried the German and the FrenchAnalyzer both are not satisfying for what I need. The