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

RE: index and search question

2004-08-09 Thread Aviran
yes -Original Message- From: Dmitrii PapaGeorgio [mailto:[EMAIL PROTECTED] Sent: Monday, August 16, 2004 9:23 AM To: [EMAIL PROTECTED] Subject: index and search question Ok so when I index a file such as below Document doc = new Document(); doc.Add(Field.Text(contents, new