[ 
http://issues.apache.org/jira/browse/NUTCH-377?page=comments#action_12439016 ] 
            
Otis Gospodnetic commented on NUTCH-377:
----------------------------------------

You'd need to modify ./src/java/org/apache/nutch/analysis/NutchAnalysis.jj and 
regenerate the .java files that produces.


> Add possibility to search for multiple values
> ---------------------------------------------
>
>                 Key: NUTCH-377
>                 URL: http://issues.apache.org/jira/browse/NUTCH-377
>             Project: Nutch
>          Issue Type: Improvement
>          Components: searcher
>            Reporter: Stefan Neufeind
>
> Searches with boolean operators (AND or OR) are not (yet) possible. All 
> search-items are always searched with AND.
> But it would be nice to have the possibility to allow multiple values for a 
> certain field. Maybe that could done using a separator?
> As an example you might want to search for:
> someword    site:www.example.org|www.apache.org
> Which (to my understand) would allow to search for one or more words with a 
> restriction to those two sites. It would prevent having to implement AND and 
> OR fully (maybe even including brackets) but would allow to cover a few often 
> used cases imho.
> Easy/hard to do? To my understanding Lucene itself allows AND/OR-searches. So 
> might basically be a problem of string-parsing and query-building towards 
> Lucene?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to