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

Danny Dvinov updated SOLR-3039:
-------------------------------

    Attachment: SOLR-3039.patch

Changes include:
- Making ExtendedDismaxQParser public to allow implementations that can extend 
it (and pulling it out into a separate file, ExtendedDismaxQParser.java).
- Making ExtendedSolrQueryParser protected to allow to allow implementations 
that can extend it.
- Introducing 3 protected methods on ExtendedDismaxQParser to allow 
implementations that extend ExtendedDismaxQParser to override some of the 
behavior:
1. ExtendedSolrQueryParser getQueryParser to allow specifying the parser used 
to parse the query.
2. boolean includeClause(Clause clause) to allow overriding whether given 
clause should be part of the {@link org.apache.lucene.search.Query} being 
parsed.
3. String preProcessUserQuery(String queryString) to allow pre-processing the 
query string prior to parsing.
                
> ExtendedDismaxQParser should allow for extension of parsing-related behavior
> ----------------------------------------------------------------------------
>
>                 Key: SOLR-3039
>                 URL: https://issues.apache.org/jira/browse/SOLR-3039
>             Project: Solr
>          Issue Type: Improvement
>          Components: query parsers
>    Affects Versions: 5.0
>            Reporter: Danny Dvinov
>            Priority: Minor
>              Labels: edismax, parser, parsing
>             Fix For: 5.0
>
>         Attachments: SOLR-3039.patch, SOLR-3039.patch, SOLR-3039.patch, 
> SOLR-3039.patch
>
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
> ExtendedDismaxQParser.parse does not currently allow for things like query 
> pre-processing prior to its parsing, specifying the parser to be used, and 
> whether particular clause should be included in the query being parsed. 
> Furthermore, ExtendedDismaxQParser and inner ExtendedSolrQueryParser cannot 
> be subclassed. By resolving this issue, we'll provide a way for Solr 
> implementations to extend the parser and parsing related behavior.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to