I'm assuming the Java and .NET versions are very similar. I have a title and 
description field and I want to search both to return documents. I use a 
booleanQuery but the content only successfully searches one field at a time. Is 
there something in addition that I need to do. Here's some sample code.
   
   
  queryField = QueryParser.Parse(sKeyword," title", this.standardAnalyzer);
  booleanQuery.Add(queryField, true, false);
   
  queryField = QueryParser.Parse(sKeyword,"description", this.standardAnalyzer);
  booleanQuery.Add(queryField, true, false);
   
  hits = indexSearcher.Search(booleanQuery);
   
  thanks, 
   Thomas

                
---------------------------------
How low will we go? Check out Yahoo! Messenger’s low  PC-to-Phone call rates.

Reply via email to