You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2022/02/05 20:46:00 UTC

[jira] [Resolved] (SOLR-15962) Surround Query Parser sometimes doesn't highlight

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

David Smiley resolved SOLR-15962.
---------------------------------
    Resolution: Won't Fix

Reverted and resolving as won't-fix.  There is a performance danger here – wildcards are possible and it's a shame to expand them eagerly.  Any way, this query parser is already supported with the default hl.usePhraseHighlighter=true which is more accurate than disabling it.

> Surround Query Parser sometimes doesn't highlight
> -------------------------------------------------
>
>                 Key: SOLR-15962
>                 URL: https://issues.apache.org/jira/browse/SOLR-15962
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: highlighter
>            Reporter: David Smiley
>            Assignee: David Smiley
>            Priority: Minor
>
> From TestSurroundQueryParser
> {noformat}
> "q", "{!surround df=name}k w l",
>                 "hl", "true",
>                 "hl.fl", "name", 
>                 "hl.usePhraseHighlighter", "false"
> {noformat}
> This won't work with the unified highlighter because when usePhraseHighlighter is disabled as seen above, it relies on Query.visitTerms to be implemented properly, which it isn't (a TODO in Lucene for that query).
> Workaround is to not disable usePhraseHighlighter :-) or to use the original highlighter.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org