Re: Why PhraseQuery translate stopwords to ?

2013-12-10 Thread Jean-Claude Dauphin
Thanks a lot Jack for this explanation! I changed the custom query analyzer to avoid incrementing the position of the subsequent term for each stop word as follow: // stop words removal StopFilter stopFilter = new StopFilter(Lucene.MATCH_VERSION, result,

Re: Why PhraseQuery translate stopwords to ?

2013-12-10 Thread Jack Krupansky
In theory, the query with holes (position increments) for stop words should work... unless you originally indexed the data without the stop word filter. Any time you change the filters, you typically need to reindex the data. -- Jack Krupansky -Original Message- From: Jean-Claude