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

Shawn Heisey commented on SOLR-8956:
------------------------------------

You'd probably have to check the code, but here's how I understand this feature:

I believe it's done completely in the admin UI client code.  Every term from 
the final step of the query analysis is gathered, and at each step of the index 
analysis, if any of the terms match something in the gathered list, they get 
highlighted.

As far as I know, the page doesn't try to verify that the term *and* the 
position match, which would be a very useful addition.  There are two ways that 
I can see that working out (probably need a new issue):

 * Have a checkbox option to only highlight when both term and position match.
 * Highlight with one color when just the term matches, and another color when 
both match.  It would probably be a good idea to check to make sure the two 
colors can be distinguished by people with various forms of color blindness.  I 
like this option better.


> 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