You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Alexandre Rafalovitch (Jira)" <ji...@apache.org> on 2019/10/07 01:24:00 UTC

[jira] [Closed] (SOLR-387) Add hooks to RequestHandlers so they can be more easily extended

     [ https://issues.apache.org/jira/browse/SOLR-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexandre Rafalovitch closed SOLR-387.
--------------------------------------

Long resolved. Marking closed for completeness.

> 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
>         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 was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org