lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Smiley (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (LUCENE-6004) Highlighting AnalyzingInfixSuggester skips non-highlighted key
Date Thu, 01 Nov 2018 21:19:00 GMT

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

David Smiley reassigned LUCENE-6004:
------------------------------------

    Assignee: Michael McCandless  (was: David Smiley)

> Highlighting AnalyzingInfixSuggester skips non-highlighted key
> --------------------------------------------------------------
>
>                 Key: LUCENE-6004
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6004
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/other
>    Affects Versions: 4.10
>            Reporter: Christian Reuschling
>            Assignee: Michael McCandless
>            Priority: Trivial
>              Labels: easyfix
>             Fix For: 4.10.3, 5.0, 6.0
>
>         Attachments: LUCENE-6004.patch
>
>   Original Estimate: 5m
>  Remaining Estimate: 5m
>
> when setting 'doHighlight' to true at AnalyzingInfixSuggester.lookup(..), both the key
and the highlightKey inside the returned lookupresult are set to the highlighted string. See
at AnalyzingInfixSuggester.createResults, line 530:
> if (doHighlight) {
>         Object highlightKey = highlight(text, matchedTokens, prefixToken);
>         result = new LookupResult(highlightKey.toString(), highlightKey, score, payload,
contexts);
>       } else {
>         result = new LookupResult(text, score, payload, contexts);
>       }
> As I understand, the key should'nt be highlighted in any case, only the highlightKey.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message