Re: Fuzzy Phrase

2010-09-26 Thread Fabiano Nunes
Thank you, Schindler. When combining queries, I need two strings, one for each field. I want to use just one string like -- head:"hello~ world"~3 AND contents:"colorless~ green~ ideas~". When I this string query within ComplexPhraseQuery, I get the exception: -- ParseException: Cannot parse 'hell

RE: Fuzzy Phrase

2010-09-26 Thread Uwe Schindler
Hi, You can combine two different ComplexPhraseQueries for both fields using an BooleanQuery with Occur.MUST. - Uwe Schindler H.-H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: falha...@gmail.com [mailto:falha...@gmail.co

Fuzzy Phrase

2010-09-26 Thread Fabiano Nunes
Is it possible to search for fuzzy phrase queries like -- "colorless~ green~ ideas~" -- ? I have had some success with ComplexPhraseQuery, but I can't use it for querying two fields at same time, ie, -- head:"hello~ world"~3 AND contents:"colorless~ green~ ideas~" -- Thank you.

RE: flushing index

2010-09-26 Thread Uwe Schindler
> thanks for the suggestion. but I was also asking of what source code should I > filled in this line > > if (condition for flushing memory to disk has been met) { ///THIS LINE > ramWriter.close(); fsWriter.addIndexes(Directory[] {ramDir}); ramWriter = new > IndexWriter(ramDir, new SimpleAnalyzer(

Re: flushing index

2010-09-26 Thread Yakob
On 9/26/10, Uwe Schindler wrote: > You should close the ramwriter before doing the addindexes call. Else you > simply copy only *committed* changes, but there are none, as the index is > initially empty and stays empty for an outside reader (your addindexes call > is the outside reader) until the

Re: finding the analyzer for a language...

2010-09-26 Thread Itamar Syn-Hershko
Shai, I was referring to your #2, which you already indicated in your reply wasn't part of the discussion. Itamar. On 26/9/2010 10:10 AM, Shai Erera wrote: The mapping is simply about returning the right Analyzer for the given Locale. You decide up front (as the Factory developer) what Analyze

Re: finding the analyzer for a language...

2010-09-26 Thread Shai Erera
The mapping is simply about returning the right Analyzer for the given Locale. You decide up front (as the Factory developer) what Analyzer / Tokenizer + TokenFilters combination you want to return for each language, and then when that language is input, you return it. That's it. Can you define mi