Michael Böckling wrote:
Yes Nutch uses a Query class different then lucene. The query is also parsed differently, What nutch does basically is that, nutch parses the query with Query.parse, then it runs all the query plugins, which convert the nutch query to lucene boolean query. Then this lucene
query is sent to index servers, which uses lucene's searchers.

Does that mean that Nutch will choke on "original Lucene" search queries?
Since the same query is (in my case) fed to both Nutch for the static
content and  Lucene for the dynamic stuff, that wouldn't work well, i'm
afraid.



No it wouldn't - Nutch query syntax is a strict subset of the Lucene query syntax. However, Nutch doesn't throw parse errors on unrecognized syntax, instead it silently discards operands that it doesn't understand, according to the query analyzer.

You can test how user queries are parsed into Nutch queries, and then translated into Lucene queries, using this tool:

        bin/nutch org.apache.nutch.searcher.Query


--
Best regards,
Andrzej Bialecki     <><
 ___. ___ ___ ___ _ _   __________________________________
[__ || __|__/|__||\/|  Information Retrieval, Semantic Web
___|||__||  \|  ||  |  Embedded Unix, System Integration
http://www.sigram.com  Contact: info at sigram dot com

Reply via email to