lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karl wettin <karl.wet...@gmail.com>
Subject Re: Search for a term in all fields
Date Tue, 20 Feb 2007 12:33:03 GMT

20 feb 2007 kl. 13.29 skrev Kainth, Sachin:

> How do I search for a term in all fields of a document?

You create a boolean query with a term query for each field available  
in the document you are searching for.

<http://lucene.apache.org/java/docs/api/org/apache/lucene/index/ 
IndexReader.html#getFieldNames 
(org.apache.lucene.index.IndexReader.FieldOption)>


-- 
karl

---------------------------------------------------------------------
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