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.
Otis --- "Wilton, Reece" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
