[
https://issues.apache.org/jira/browse/SOLR-281?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12564453#action_12564453
]
Yonik Seeley commented on SOLR-281:
-----------------------------------
{quote}The QParserPlugin class seems unnecessary: all it does is implement
init() and add a createParser method. Why not just have the parser constructor
take those arguments...{quote}
That would require instantiation with reflection I think.
{quote}or, if that can't be done, create an interface to allow the parser
itself implement both init() and createParser() (or create()). It then avoids
having to create 2 classes (in the case of DisMax, in the same file...which is
not pretty).{quote}
QParserPlugin *is* that interface essentially (except that its an class instead
of an interface). For library maintainers an abstract class is preferred over
an interface for things that a user will extend... that way signature changes
can be made in a backward compatible manner.
> Search Components (plugins)
> ---------------------------
>
> Key: SOLR-281
> URL: https://issues.apache.org/jira/browse/SOLR-281
> Project: Solr
> Issue Type: New Feature
> Components: search
> Affects Versions: 1.3
> Reporter: Ryan McKinley
> Assignee: Ryan McKinley
> Fix For: 1.3
>
> Attachments: SOLR-281-ComponentInit.patch,
> SOLR-281-ComponentInit.patch, SOLR-281-SearchComponents.patch,
> SOLR-281-SearchComponents.patch, SOLR-281-SearchComponents.patch,
> SOLR-281-SearchComponents.patch, SOLR-281-SearchComponents.patch,
> SOLR-281-SearchComponents.patch, SOLR-281-SearchComponents.patch,
> SOLR-281-SearchComponents.patch, SOLR-281-SearchComponents.patch,
> solr-281.patch, solr-281.patch, solr-281.patch
>
>
> A request handler with pluggable search components for things like:
> - standard
> - dismax
> - more-like-this
> - highlighting
> - field collapsing
> For more discussion, see:
> http://www.nabble.com/search-components-%28plugins%29-tf3898040.html#a11050274
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.