[ https://issues.apache.org/jira/browse/SOLR-4410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Scott Smerchek closed SOLR-4410. -------------------------------- Resolution: Duplicate No longer a need for this issue/patch. > Highlight query parameter (hl.q) does not honor QParser defType parameter > ------------------------------------------------------------------------- > > Key: SOLR-4410 > URL: https://issues.apache.org/jira/browse/SOLR-4410 > Project: Solr > Issue Type: Bug > Components: highlighter > Affects Versions: 4.1 > Reporter: Scott Smerchek > Priority: Minor > Labels: highlighter, qparserplugin > Attachments: SOLR-4410.patch > > > If one uses a custom QParser for parsing standard queries, that person cannot > do the same with the highlight query parameter using the 'defType' parameter. > The hl.q QParser will always default to the default defType unless the local > params syntax is used to specify a different QParser. > The typical expectation would be that q and hl.q would behave the same. > The following examples should highlight the document in the same way: > {code} > q=field:text&hl=true&defType=custom > {code} > {code} > q=id:123&hl=true&hl.q=field:text&defType=custom > {code} > This is how you have to do it now: > {code} > q=field:text&hl=true&defType=custom > {code} > {code} > q=id:123&hl=true&hl.q={!custom}field:text&defType=custom > {code} -- This message was sent by Atlassian JIRA (v6.2#6252) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org