lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose Miguel Diez <>
Subject Re: Searching multiple fields with same name
Date Tue, 08 Mar 2005 11:02:27 GMT

Just store it in two separate fields, and prepare a query:
 (title1:  myquery ) OR (title2: myquery )

Substitution of myquery by your expressions will work fine.

Jose Miguel

Romain Laboisse escribió:

>I am indexing documents which may have more than one title and I would like
>to be able to search these titles separately.
>For example, a document may have two titles, "Jakarta Lucene" and "Powerful
>search engine".
>A search on 'lucene AND jakarta' should return this document but a search on
>'lucene AND search' should not return it.
>Is there a way to achieve this?
>To unsubscribe, e-mail:
>For additional commands, e-mail:

No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.6.4 - Release Date: 07/03/2005

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message