NutchBean creates a query through the [Query query = Query.parse(args[0], conf);] call in its main method. The actual query object is created behind the scenes by the whole nutch analysis mechanism. This does alot of work that is helpful in creating general queries but it is not the only way.
You can create your own query objects and pass them into the NutchBean.search(query, int) method. Take a look at the Lucene in Action book by Erik Hatcher and Otis Gospodnetic and this will show you how to create different types of query objects such as wildcard queries. Dennis Daniel López wrote: > Hi, > > I have seen that NutchBean searches are case insensitive and uses a > logical AND if various terms are used as criteria. Moreover, if uses > full words, so no partial matches are allowed (or * as ?) and special > characters (áéí...) have to be matched exactly. > > Is there any way one can tweak those settings and search through the > NutchBean with other settings? I'm more interested in allowing partial > matches and making criteria "special-characaters insensitive". > > It NutchBean does not support that, is there any workaround and should > I better go straight to the code and use Lucene low level to > accomplish it? > > Thanks, > D. ------------------------------------------------------------------------- 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
