Hi, >From whatever you have written you are trying to write a query *word1 AND stopword AND word2 *this means that the result should contain all of word1, word2 and the stopword.
Since you have already removed the stopword during index time you will never find any document matching your query. (this is expected behaviour) you can possibly use word1 OR stopword OR word2 (depends on what you want in the result) If you can clarify more about what you want in the result we can discuss on what can be done. Prabin On Thu, Nov 13, 2008 at 10:30 AM, Rafael Cunha de Almeida < [EMAIL PROTECTED]> wrote: > Hello, > > I used an Analyzer which removes stopwords when indexing, then I wanted > to do an AND search using MultiFieldQueryParser. So I did this: > word1 AND stopword AND word2 > I thought the stopword would be ignored by the searcher (I use the same > Analyzer to index and search). But instead, I get no results whenever I > have a stopword like that. If I remove the stopword, giving me: > word1 AND word2 > then the search is sucessful. Is that the expected behaviour? Am I > doing something wrong? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >