Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BCE05200B48 for ; Mon, 18 Jul 2016 17:11:27 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BBBE0160A65; Mon, 18 Jul 2016 15:11:27 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C962D160A6D for ; Mon, 18 Jul 2016 17:11:23 +0200 (CEST) Received: (qmail 94385 invoked by uid 500); 18 Jul 2016 15:11:20 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 94107 invoked by uid 99); 18 Jul 2016 15:11:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 18 Jul 2016 15:11:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 9A1342C0374 for ; Mon, 18 Jul 2016 15:11:20 +0000 (UTC) Date: Mon, 18 Jul 2016 15:11:20 +0000 (UTC) From: "Christine Poerschke (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SOLR-9275) make XML Query Parser support extensible-via-configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 18 Jul 2016 15:11:27 -0000 [ https://issues.apache.org/jira/browse/SOLR-9275?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15382430#comment-15382430 ] Christine Poerschke commented on SOLR-9275: ------------------------------------------- Change committed to master and would be cherry-picking to branches in a few days or so. > 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} > > org.apache.solr.search.HelloQueryBuilder > org.apache.solr.search.GoodbyeQueryBuilder > > {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