You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Otis Gospodnetic <ot...@yahoo.com> on 2004/04/05 11:48:38 UTC

Re: how to combine queries?

Moving to lucene-user list.

You can use MultiFieldQueryParser if you want to parse queries entered
by people, or use BooleanQuery and its add methods if you want to
combine queries programmatically.

Otis

--- Amrun <Am...@gmx.at> wrote:
> Hi, 
> 
> I'm new to lucene and I need to search for the content of several
> fields.
> For example, I want to search for the given keywort in the
> content-field, in
> the title-field, in a category-field and so on. How can I do this the
> best
> way?
> 
> thanks for help
> Amr�n
> 
> -- 
> +++ 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-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: lucene-dev-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