lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: exact match
Date Mon, 04 Apr 2005 20:48:08 GMT

On Apr 4, 2005, at 4:34 PM, Yura Smolsky wrote:

> Hello, java-user.
>
> I have documents with tokenized, indexes and stored field. This field
> contain one-two words usually. I need to be able to search exact
> matches for two words.
> For example search "John" should return documents with field
> containing "John" only, not "John Doe" or "John Foo".
>
> Any ideas?

Use an untokenized field to search on in the case of finding an exact 
match.

	Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message