lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wilton, Reece" <>
Subject RE: Exact Match
Date Wed, 22 Oct 2003 17:30:44 GMT
Yes, that's what I'm doing.  Just wanted to see what other ideas where
out there. 

-----Original Message-----
From: Otis Gospodnetic [] 
Sent: Wednesday, October 22, 2003 9:12 AM
To: Lucene Users List
Subject: Re: Exact Match

There is no direct support for that.  However, if one of your documents
contains _only_: "brown fox", won't a search for "brown fox" give that
document the highest score, as it is the closest match, allowing you to
just pop the first hit?  It's no guarantee that the first hit is the
exact match (what if there are no exact matches in the index), but
that's a simple check to perform in your application.


--- "Wilton, Reece" <> wrote:
> Hi,
> Does Lucene support exact matching on a tokenized field?
> So for example... if I add these three phrases to the index:
> - "The quick brown fox"
> - "The quick brown fox jumped"
> - "brown fox"
> I want to be able to do an exact field match so when I search for
> "brown
> fox" I only get the last one returned.  I can do this in my own code
> by
> storing the data and then comparing it to the search phrase.  Is that
> the best way of doing this?
> Thanks,
> Reece
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

Do you Yahoo!?
The New Yahoo! Shopping - with improved product search

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

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

View raw message