lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Otis Gospodnetic <otis_gospodne...@yahoo.com>
Subject Re: Search one keyword in two fields - How?
Date Tue, 02 Mar 2004 13:35:34 GMT
You can use MultiFieldQueryParser, or you can construct a BooleanQuery
with two TermQueries as its two clauses, and combine them with OR.

Otis

--- Karl Koch <TheRanger@gmx.net> wrote:
> Hi,
> 
> hat do I need to search for one single keyword in two fields of one
> index?
> Can someone provide an easy example or tell me where to find it?
> 
> Cheers,
> Karl
> 
> -- 
> +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter
> Virenschutz +++
> 100% Virenerkennung nach Wildlist. Infos:
> http://www.gmx.net/virenschutz
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 


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


Mime
View raw message