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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to