You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by "Andrzej Bialecki (JIRA)" <ji...@apache.org> on 2007/11/14 10:48:43 UTC

[jira] Commented: (NUTCH-573) Multiple Domains - Query Search

    [ https://issues.apache.org/jira/browse/NUTCH-573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12542382 ] 

Andrzej Bialecki  commented on NUTCH-573:
-----------------------------------------

I don't think this is the right direction. Using commas is IMHO not intuitive - if we go that far, I think it would be better to refactor the parser and Query to support nested clauses, if we really want to support more complex query syntax. This way we could also support parentheses.

Also, I'm not sure if the original reporter asked for a generic solution that would work with every field - if the issue at hand is just the site: field, then we can use "raw field" and a RawQueryFilter to parse multiple terms within the SiteQueryFilter implementation, without changing the global query syntax.

> Multiple Domains - Query Search
> -------------------------------
>
>                 Key: NUTCH-573
>                 URL: https://issues.apache.org/jira/browse/NUTCH-573
>             Project: Nutch
>          Issue Type: Improvement
>          Components: searcher
>    Affects Versions: 0.9.0
>         Environment: All
>            Reporter: Rajasekar Karthik
>            Assignee: Enis Soztutar
>             Fix For: 1.0.0
>
>         Attachments: multiTermQuery_v1.patch
>
>
> Searching multiple domains can be done on Lucene - nut not that efficiently on nutch.
> Query:
> +content:"abc" +(site"www.aaa.com" site:"www.bbb.com")
> works on lucene but the same concept does not work on nutch.
> In Lucene, it works with 
> org.apache.lucene.analysis.KeywordAnalyzer
> org.apache.lucene.analysis.standard.StandardAnalyzer 
> but NOT on
> org.apache.lucene.analysis.SimpleAnalyzer 
> Is Nutch analyzer based on SimpleAnalyzer? In this case, is there a workaround to make this work? Is there an option to change what analyzer nutch is using? 
> Just FYI, another solution (inefficient I believe) which seems to be working on nutch
> <query> -site:"ccc.com" -site:"ddd.com" 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.