> String line="text1 text2";
> Query q = MultiFieldQueryParser.parse(line,fields,analyzer);
> Hits hits = searcher.search(q);
>
> Here search will take "text1 OR text2" Condition
> How to make searh "text1 and text2" Condiation
MultiFieldQueryParser uses QueryParser.parse which defaults to OR
s
String line="text1 text2";
Query q = MultiFieldQueryParser.parse(line,fields,analyzer);
Hits hits = searcher.search(q);
Here search will take "text1 OR text2" Condition
How to make searh "text1 and text2" Condiation
I recently stumbled over the same issue - the setOperator method is not
static
Dear all
String line="text1 text2";
Query q = MultiFieldQueryParser.parse(line,fields,analyzer);
Hits hits = searcher.search(q);
Here search will take "text1 OR text2" Condition
How to make searh "text1 and text2" Condiation
Thanks and regards
Lingaraju.T.S