Is your FuzzyQuery matching any documents at all? It would be helpful if you could post your entire query. It might be happening that your Fuzzy query is not matching any hits, but when you specify it as a MUST clause, then it becomes a necessary condition for any hit to be returned by your overall query. However, with MUST clause, that restriction is lifted.
Can you try running the FuzzyQuery independently (outside the BooleanQuery) and see if you get any hits? On Fri, Jun 7, 2019 at 11:27 PM <baris.ka...@oracle.com> wrote: > > May i ask this question about FuzzyQuery? > > When i select BooleanClause.Occur.MUST for a FuzzyQuery i dont get any > results back but with > > Occur.SHOULD i get some results, though. > > what is the meaning of Occur.MUST for FuzzyQuery? > > I want Lucene to give me best result from FuzzyQuery, i thought that is > good use for Occur.MUST. > > Best regards > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > -- Regards, Atri Apache Concerted --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org