Re: search for and condition

2004-08-10 Thread Thomas Plümpe
> 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

Re: search for and condition

2004-08-10 Thread Eric Jain
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

search for and condition

2004-08-09 Thread lingaraju
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