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: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>
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: <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>