[ 
https://issues.apache.org/jira/browse/SOLR-8956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15242566#comment-15242566
 ] 

Stefan Matheis (steffkes) commented on SOLR-8956:
-------------------------------------------------

bq. [~steffkes] is it simply that if a term appears in both sides (query/index) 
it gets highlighted? Is this represented in the underlying data, or something 
you do client-side?

even simpler than that [~upayavira], [relevant code from the 
analysis.js|https://git1-us-west.apache.org/repos/asf/lucene-solr/repo?p=lucene-solr.git;a=blob;f=solr/webapp/web/js/scripts/analysis.js;h=5fcadaf0f1a6c97c7be4a4739275f9d9bcc1ceb2;hb=HEAD#l517]:

{code} 514                       if( analysis_data[type][i+1][j].match && 
 515                         ( 'text' === short_key || 'raw_bytes' === 
short_key ) )
 516                       {
 517                         classes.push( 'match' );
 518                       }{code}

there is a {{match}} attribute in the response auf the analysis endpoint. the 
check in L515 is used to limit the cells that get highlighted, iirc (think of 
the verbose view w/ all the additional information per term)

> Highlight missing in Analysis View
> ----------------------------------
>
>                 Key: SOLR-8956
>                 URL: https://issues.apache.org/jira/browse/SOLR-8956
>             Project: Solr
>          Issue Type: Bug
>          Components: Schema and Analysis, web gui
>    Affects Versions: 5.4, 5.5, master
>            Reporter: Stefan Matheis (steffkes)
>            Assignee: Upayavira
>         Attachments: Solr+Admin+2016-04-06+12-03-36.png, 
> Solr+Admin+2016-04-06+12-09-23.png
>
>
> the new analysis view is missing the highlighting for matches. screenshots 
> appended to show the difference.
> this was reported by user {{mloeb}} on #solr yesterday. initially he asked 
> about highlighting in general - questioning a few things has gotten us to the 
> analysis view for debugging purposes. not seeing any highlights given the 
> index/query data - i've asked him to try the very same in the old admin ui 
> where it worked.
> i haven't dived in the code yet, probably [~upayavira] can give a hint where 
> / at what to look?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to