Re: Why PhraseQuery translate stopwords to ?

2013-12-10 Thread Jean-Claude Dauphin
that their positions are maintained. -- Jack Krupansky -Original Message- From: Jean-Claude Dauphin Sent: Monday, December 09, 2013 4:15 PM To: java-user@lucene.apache.org Subject: Why PhraseQuery translate stopwords to ? Hi, My application uses an analyzer with a StopWordFilter. PhraseQuery

Re: Why PhraseQuery translate stopwords to ?

2013-12-10 Thread Jack Krupansky
Dauphin Sent: Tuesday, December 10, 2013 4:21 AM To: java-user@lucene.apache.org Subject: Re: Why PhraseQuery translate stopwords to ? 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

Why PhraseQuery translate stopwords to ?

2013-12-09 Thread Jean-Claude Dauphin
stopwords. Query Searching works when the stopword starts the phrase but no results when the ? is not at the beginning. Searching for phrases without stopwords works well. Any explanation/FAQ/user-list-message that explains why PhraseQuery translate stopwords to ? would be appreciated. Thank you

Re: Why PhraseQuery translate stopwords to ?

2013-12-09 Thread Jack Krupansky
To: java-user@lucene.apache.org Subject: Why PhraseQuery translate stopwords to ? Hi, My application uses an analyzer with a StopWordFilter. PhraseQuery translates queries with stopwords by replacing stopwords to ? characters. For example, Java and Lucene is replaced by Java ? Lucene