Re: problem with a query

2011-09-08 Thread G.Long
OK, thank you for the explanation :) Gary. Le 07/09/2011 17:34, Ian Lea a écrit : There appears to be a mismatch between your usage of KeywordAnalyzer and PhraseQuery. As the javadoc says, KeywordAnalyzer is generally used for data like zip codes and product ids, whereas phrase queries are use

Use of enablePositionIncrements in StopFilter and QueryParser

2011-09-08 Thread James Faulkner
I have a question regarding the usage of enablePositionIncrements in StopFilter in Lucene 3.3. I wish to disable this which can be easily done using the setEnablePositionIncrements method in FilterTokenFilter. However, the JavaDoc for that method states: NOTE: be sure to also set {@link QueryP