Misbah created LUCENENET-499: -------------------------------- Summary: 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 is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira