lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From digby <>
Subject Re: searching in more than fields on document
Date Tue, 06 Jun 2006 09:47:34 GMT
I was wondering this exact question, but MultiFieldQueryParser still 
requires you to specify the field names. In my application I don't know 
the field names (they're automatically generated from beans using 
BeanUtils.getProperties()), so I've resorted to concatenating all the 
fields into a single "content" field which I then search on (I also have 
the individual fields added too).

Would this be the correct approach for what I'm trying to do, or is 
there another "AllFieldsQueryParser" I could use?



karl wettin wrote:
> On Tue, 2006-06-06 at 14:38 +0530, Amaresh Kumar Yadav wrote:
>> My document has six field and i want to search on three fields. 
>> Presently I am able to search on only TITLE field..
>>  query = QueryParser.parse(queryString, "TITLE", analyzer);
> You want to use the MultiFieldQueryParser.

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

View raw message