[
https://issues.apache.org/jira/browse/SOLR-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brian Durand updated SOLR-387:
------------------------------
Attachment: SOLR-387-Extensible-RequestHandlers.patch
Adds a hook method that can be implemented in RequestHanlder subclasses to
modify the search objects before the search is executed.
> Add hooks to RequestHandlers so they can be more easily extended
> ----------------------------------------------------------------
>
> Key: SOLR-387
> URL: https://issues.apache.org/jira/browse/SOLR-387
> Project: Solr
> Issue Type: Improvement
> Components: search
> Affects Versions: 1.2
> Reporter: Brian Durand
> Priority: Trivial
> Fix For: 1.2
>
> Attachments: SOLR-387-Extensible-RequestHandlers.patch
>
>
> I have found a couple of instances where I need to hook code in to modify the
> queries sent to RequestHandler and DisMaxRequestHandler before they are
> executed. The structure of these classes under Solr 1.2 does not lend itself
> to this type of extension. I have a patch which adds an additional method:
> public void addCustomBehavior (SolrQueryRequest req, SolrQueryResponse
> rsp, List<Query> queries, List<SortField> sortFields)
> Subclasses of the request handlers can then implement this method to hook in
> their custom code.
> This code fix would be made obsolete by SOLR-281 (Search Component Plugins)
> https://issues.apache.org/jira/browse/SOLR-281
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.