You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/18 15:10:21 UTC
[jira] [Commented] (SOLR-9275) make XML Query Parser support
extensible-via-configuration
[ https://issues.apache.org/jira/browse/SOLR-9275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15382427#comment-15382427 ]
ASF subversion and git services commented on SOLR-9275:
-------------------------------------------------------
Commit 6f76ac1314510fe09860a92e246c88bfae168fbb in lucene-solr's branch refs/heads/master from [~cpoerschke]
[ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=6f76ac1 ]
SOLR-9275: make XML QueryParser support (defType=xmlparser) extensible via configuration
> make XML Query Parser support extensible-via-configuration
> ----------------------------------------------------------
>
> Key: SOLR-9275
> URL: https://issues.apache.org/jira/browse/SOLR-9275
> Project: Solr
> Issue Type: New Feature
> Security Level: Public(Default Security Level. Issues are Public)
> Reporter: Christine Poerschke
> Assignee: Christine Poerschke
> Priority: Minor
> Attachments: SOLR-9275.patch
>
>
> SOLR-839 added XML QueryParser support (deftype=xmlparser) and this ticket here proposes to make that support extensible-via-configuration.
> Objective:
> * To support use of custom query builders.
> * To support use of custom query builders _without_ a corresponding custom XmlQParser plugin class.
> Illustration:
> * solrconfig.xml snippet to configure use of the custom builders
> {code}
> <queryParser name="testxmlparser" class="XmlQParserPlugin">
> <str name="HelloQuery">org.apache.solr.search.HelloQueryBuilder</str>
> <str name="GoodbyeQuery">org.apache.solr.search.GoodbyeQueryBuilder</str>
> </queryParser>
> {code}
> * HelloQueryBuilder and GoodbyeQueryBuilder both extend the new abstract SolrQueryBuilder class.
> {code}
> + public abstract class SolrQueryBuilder implements QueryBuilder {
> + protected final SolrQueryRequest req;
> + protected final QueryBuilder queryFactory;
> + public SolrQueryBuilder(String defaultField, Analyzer analyzer,
> + SolrQueryRequest req, QueryBuilder queryFactory) {
> + this.req = req;
> + this.queryFactory = queryFactory;
> + }
> + }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org