On Aug 17, 2005, at 2:45 AM, Karthik N S wrote:
Hi  Lucener's

Apologies..........

I have seen forms using 'DEFAULT_OPERATOR_AND' with something like below

 > QueryParser parser = new QueryParser( "terms", analyzer);
 > parser.setOperator(QueryParser.DEFAULT_OPERATOR_AND);
 > query = parser.parse(TextParameters);

How to use the DEFAULT_OPERATOR_AND when using MultiFieldQueryParser as below

"query = MultiFieldQueryParser.parse("text",fields,analyzer);" ?

[ I also searched the other Form's for same but no answers.]

MultiFieldQueryParser does not adhere to the default operator setting, and will always use OR.

    Erik


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to