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?
TIA
Digby
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]