lucene-java-user mailing list archives

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

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.

Saludos,
Jose Miguel

Romain Laboisse escribió:

>Hello,
>
>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?
>
>Thanks,
>Romain
> 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>For additional commands, e-mail: java-user-help@lucene.apache.org
>
>
>
>
>  
>


-- 
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: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message