nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sami Siren (JIRA)" <j...@apache.org>
Subject [jira] Commented: (NUTCH-775) Enhance Searcher interface
Date Thu, 28 Jan 2010 19:43:34 GMT

    [ https://issues.apache.org/jira/browse/NUTCH-775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806051#action_12806051
] 

Sami Siren commented on NUTCH-775:
----------------------------------

{quote}IMHO this could go as it is ... one suggestion though: this Query/QueryContext now
resembles SolrQuery/SolrParams. Perhaps we could rename QueryContext to QueryParams?
{quote}
That sounds reasonable, I will change the name before committing. Also I forgot to change
web gui to use the new api, will do that also.

> Enhance Searcher interface
> --------------------------
>
>                 Key: NUTCH-775
>                 URL: https://issues.apache.org/jira/browse/NUTCH-775
>             Project: Nutch
>          Issue Type: Improvement
>          Components: searcher
>            Reporter: Sami Siren
>            Assignee: Sami Siren
>             Fix For: 1.1
>
>         Attachments: NUTCH-775.patch
>
>
> Current Searcher interface is too limited for many purposes:
> Hits search(Query query, int numHits, String dedupField, String sortField,
>       boolean reverse) throws IOException;
> It would be nice that we had an interface that allowed adding different features without
changing the interface. I am proposing that we deprecate the current search method and introduce
something like:
> Hits search(Query query, Metadata context) throws IOException;
> Also at the same time we should enhance the QueryFilter interface to look something like:
> BooleanQuery filter(Query input, BooleanQuery translation, Metadata context)
>     throws QueryException;
> I would like to hear your comments before proceeding with a patch.

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


Mime
View raw message