[
https://issues.apache.org/jira/browse/SOLR-5858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alan Woodward updated SOLR-5858:
--------------------------------
Attachment: SOLR-5858.patch
> Specify highlight query parameter outside of localparams
> --------------------------------------------------------
>
> Key: SOLR-5858
> URL: https://issues.apache.org/jira/browse/SOLR-5858
> Project: Solr
> Issue Type: Improvement
> Affects Versions: 4.7, 5.0
> Reporter: Alan Woodward
> Assignee: Alan Woodward
> Priority: Minor
> Fix For: 4.8
>
> Attachments: SOLR-5858.patch
>
>
> A separate highlight query provided by the hl.q parameter will always use the
> lucene query parser unless a separate parser is explicitly provided as a
> localparam. This is mildly annoying if you're using a hand-rolled query
> parser. This patch adds a new hl.qparser parameter that allows you to
> specify a query parser outside of localparams, and will fall back to using
> the overall query defType if hl.qparser is not passed.
> Patch also fixes a bug in edismax and dismax query parsers whereby they
> couldn't be used for highlight queries because they weren't properly set up
> until parse() is called, and HighlightComponent doesn't do that.
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]