You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Alan Woodward (JIRA)" <ji...@apache.org> on 2014/03/18 10:50:45 UTC

[jira] [Resolved] (SOLR-5858) Specify highlight query parameter outside of localparams

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

Alan Woodward resolved SOLR-5858.
---------------------------------

    Resolution: Fixed

> 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, 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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org