I think you want to use the MultiFieldQueryParser instead of the
QueryParser.
[EMAIL PROTECTED] wrote:
Is there a way to make the default search to go across all fields?
For example, suppose I have two fields "title" & "content", and we have
the following:
String queryText = "dogs cats";
QueryParser qParser = ...;
Query query = qParser.parse(queryText); // uses DFLT field.
But what if you want the query to go across ALL fields?
(I'm hoping there is an easier approach than expanding the query across
all fields and do a Boolean OR.)
thanks in advance,
Todd
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
-------------------------------------------------------------------
Grant Ingersoll
Sr. Software Engineer
Center for Natural Language Processing
Syracuse University
School of Information Studies
337 Hinds Hall
Syracuse, NY 13244
http://www.cnlp.org
Voice: 315-443-5484
Fax: 315-443-6886
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]