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

Tricia Jenkins commented on SOLR-4722:
--------------------------------------

Hi Simon,

You shouldn't need to build a custom Solr to get this to work for you.  Just 
put the jar file provided in your lib directory and adjust your solrconfig.xml 
file acordingly.  I just tried it out with the solr-4.5.1.zip binary and worked 
just fine to get term positions for the includes field in the example.

You did bring to my attention that the getUniqueKeys isn't necessary. It looks 
like a copy/paste error from the PostingsSolrHighlighter.  New patch to follow. 
 I'm just running all the steps suggested in the HowToContribute wiki.

Thanks,
Tricia

> Highlighter which generates a list of query term position(s) for each item in 
> a list of documents, or returns null if highlighting is disabled.
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-4722
>                 URL: https://issues.apache.org/jira/browse/SOLR-4722
>             Project: Solr
>          Issue Type: New Feature
>          Components: highlighter
>    Affects Versions: 4.3, 5.0
>            Reporter: Tricia Jenkins
>            Priority: Minor
>         Attachments: SOLR-4722.patch, solr-positionshighlighter.jar
>
>
> As an alternative to returning snippets, this highlighter provides the (term) 
> position for query matches.  One usecase for this is to reconcile the term 
> position from the Solr index with 'word' coordinates provided by an OCR 
> process.  In this way we are able to 'highlight' an image, like a page from a 
> book or an article from a newspaper, in the locations that match the user's 
> query.
> This is based on the FastVectorHighlighter and requires that termVectors, 
> termOffsets and termPositions be stored.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

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

Reply via email to