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

julien nioche commented on NUTCH-563:
-------------------------------------

As I explained in my message to the dev-list, having a separate plugin for the 
new fields is not perfect. The BasicQueryFilter generates subclauses for each 
term of the user query where it searches for a match on any of the fields, e.g. 
for a user query  A B, it generates +(field1:A field2:A ...)  +(field1:B 
field2:B....). If you want to add a new field in a separate plugin you'd have 
to parse the clauses generated by the BQF, assume that there is a subclause per 
original term and modify the subclause to add the field, which is not great as 
it relies on assumptions on the output query generated by the BQF and that this 
query has not been modified by another query filter in the meantime.

It would be good to be able to remove the BasicQueryFilter altogether and 
replace it with a custom version if necessary, but apparently you have to have 
it in the list of active plugins. 


> Include custom fields in BasicQueryFilter
> -----------------------------------------
>
>                 Key: NUTCH-563
>                 URL: https://issues.apache.org/jira/browse/NUTCH-563
>             Project: Nutch
>          Issue Type: New Feature
>          Components: searcher
>            Reporter: julien nioche
>            Priority: Minor
>             Fix For: 0.9.0
>
>         Attachments: diff.BasicQueryFilter.dynamicFields.txt
>
>
> This patch allows to include additional fields in the BasicQueryFilter by 
> specifying runtime parameters.  Any parameter matching the regular expression 
> (query\\.basic\\.(.+)\\.boost") will be added to the list of fields to be 
> used by the BQF and the specified float value will be used as boost.

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

Reply via email to