You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Shad Storhaug (JIRA)" <ji...@apache.org> on 2017/06/29 10:28:00 UTC

[jira] [Closed] (LUCENENET-499) allow to highlight only value of the fields used for the search

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

Shad Storhaug closed LUCENENET-499.
-----------------------------------
    Resolution: Not A Problem

JIRA is for reporting defects with the code and/or tracking work that needs to be completed on the Lucene.Net project. 

The appropriate place to ask for user help is on the user mailing list (https://cwiki.apache.org/confluence/display/LUCENENET/Mailing+Lists) or on StackOverflow. You are far more likely to get an answer to your question that way.

> allow to highlight only value of the fields used for the search
> ---------------------------------------------------------------
>
>                 Key: LUCENENET-499
>                 URL: https://issues.apache.org/jira/browse/LUCENENET-499
>             Project: Lucene.Net
>          Issue Type: Wish
>            Reporter: Misbah
>
> I want to index source code and create multiple fields for methods, variables , classes to store the name of these elements, and i will have a field called content to store the entire code.
> when I want to search for a method with the name (add), the highlighter of course will highlight any word (add) in the content field.
> so how can I approach this scenario, so that I can only highlight the fields the user is searching for ?
> now we have an indexing engine, that accept a filename, and allow special tags to be added to the content of the file so it can create fields based on those tags, and this allow exact highlighting for fields. 
> is there any feature in lucene that I can use to to approach this issue so we can highlight only those fields the users are searching for ? 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)