lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Don Vaillancourt <>
Subject Re: Exact match search
Date Mon, 12 Jul 2004 19:24:36 GMT
How do you go about getting an exact match for a document that can contain 
hundreds of words?  As I understand it, when you tokenize a document it is 
broken into words so really all the results you show are exact matches.

At 03:17 PM 12/07/2004, you wrote:
>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:

Don Vaillancourt
Director of Software Development

416-815-2000 ext. 245

This email message is intended only for the addressee(s)
and contains information that may be confidential and/or
copyright.  If you are not the intended recipient please
notify the sender by reply email and immediately delete
this email. Use, disclosure or reproduction of this email
by anyone other than the intended recipient(s) is strictly
prohibited. No representation is made that this email or
any attachments are free of viruses. Virus scanning is
recommended and is the responsibility of the recipient.

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message