Search code examples
javasolrlucenesolrj

Install a Solr patch for TermVectors


I'm working with Solr 8.0 and I need to get the results of the TermsVectors in my code, but I can't use "tvrh" in my SolrQuery. I saw that I need to install a patch on my Solr, but I have no idea how to do this.

The link of the patch : https://issues.apache.org/jira/browse/SOLR-949

Does anyone can help me with this ?

Thanks a lot

Alex


Solution

  • Finally, I found another way to solve my problem. I used the code below to get the term vectors and put them in an object, and it works pretty good.

    Thanks a lot for your help.

    https://github.com/ColinHebert/Sakai-Solr/blob/master/impl/src/main/java/org/sakaiproject/search/solr/response/TermVectorExtractor.java