lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Exact match search
Date Mon, 12 Jul 2004 19:17:44 GMT

I want to match documents that exactly equal a certain value, not just
contain it.

If I search for "foo" in Lucene I get back documents like these:

"foo bar"
"bar foo"

Is there a way to just get the ones that exactly
equal the value I'm searching for?  In this case, I want to only return the
first document (ex. "foo").

I have a workaround where I store all the values
and then after I get the hits I go through them and skip those that don't
match.  But this will return result sets of hundreds of documents that I don't


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message