You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Christian Schrader <sc...@evendi.de> on 2002/03/08 01:03:29 UTC

Combining FuzzyQueries

I have the following problem. When I create a Fuzzyquery:
 FuzzyQuery fuzzy = new FuzzyQuery(new Term("categoryName", "test"));
and add it to a new BooleanQuery
 finalQuery = new BooleanQuery();
 finalQuery.add(fuzzy,false,false);

fuzzy1.toString("contents"); gives me 
categoryName:test~   which sounds about right
but finalQuery.toString("contents") gives me 
()~ which is missing something.
What am I missing here?

categoryName was indexed with
doc.add(Field.Keyword("categoryName", ...))

Thanks, Chris!


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>