Hi Nick,

For implementing Boolean OR queries, you will have to write your own
plugin. Look at the code of query-basic and query-site for example
code of how to write a new query plugin.

Look at the javadocs of org.apache.lucene.search.BooleanQuery for
details. By making a query as non-required, you will get an OR
behavior. [The API for adding a new query term is add(Query query,
boolean required, boolean prohibited). So you will specify 'false' for
required].

For your second question, you might want to start by looking at this email:
http://mail-archives.apache.org/mod_mbox/jakarta-lucene-dev/200309-incomplete.mbox/[EMAIL
 PROTECTED]


Regards,
Praveen.

On 7/11/05, Nick Rowlands <[EMAIL PROTECTED]> wrote:
> Hi
> 
> I am at the start of my uni dissertation on interactive query expansion. At
> the mo I am using an Ajax framework and Wordnet to suggest alternative or
> additional search terms based on the user's original query. The webpage is
> updated as the user types. I now which to integrate my system into a search
> engine and Nutch seems suitable. I have successfully completed the whole-web
> crawl tutorial. I have two questions:
> 
> 1. I wish to formulate a boolean query using the OR operator to search on
> all of the alternative search terms Wordnet has suggested. I have found no
> documentation neither in the Wiki or in the mailing list archive. Are
> boolean queries possible in Nutch?
> 
> 2. How do I extract all index terms from nutch, and possibly their tf/idf
> score too? I inted to use this information to have a function similar to
> Google Suggest, in that as you type, suggested terms will appear based on
> terms actually in the index. I would want to put the terms and their
> associated score into a database like postgresql.
> 
> Any pointers would be much appreciated!
> 
> Regards,
> Nick.
> 
>


-------------------------------------------------------
This SF.Net email is sponsored by the 'Do More With Dual!' webinar happening
July 14 at 8am PDT/11am EDT. We invite you to explore the latest in dual
core and dual graphics technology at this free one hour event hosted by HP,
AMD, and NVIDIA.  To register visit http://www.hp.com/go/dualwebinar
_______________________________________________
Nutch-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nutch-general

Reply via email to