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! Messengers low PC-to-Phone call rates.-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general