lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benjamin Ragheb <>
Subject Re: Search on all fields in a document
Date Thu, 20 Oct 2005 19:15:40 GMT
Rob Young wrote:

> Is there no way to say "search on all searchable fields in every 
> document in the index" without explicitly providing a list of "all 
> searchable fields"?

You can programmatically get the list of searchable fields by calling 
fieldNames(true) on IndexReader.  From there it shouldn't be too hard to 
generate a query that searches all the fields.

-- Ben

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

View raw message