Hi,
I am trying to get offsets from TermVectorComponent .
I am getting the offsets successfully when I go through the URL in the
browser.
But unable to get it using the SOLR API in Java Code .
Code :
solrQuery.set("hl", true);
solrQuery.set("hl.fl", "content");
solrQuery.set("hl.usePhraseHighlighter", true);
solrQuery.set("hl.maxAnalyzedChars", Integer.MAX_VALUE);
solrQuery.setHighlightFragsize(SIZE_CALC);
solrQuery.setHighlightSimplePre("*");
solrQuery.setHighlightSimplePost("*");
And in XML :
solrconfig.xml:
-------------
<searchComponent name="tvComponent" class="solr.TermVectorComponent"/>
<requestHandler name="/tvrh" class="solr.SearchHandler" startup="lazy">
<lst name="defaults">
<str name="df">text</str>
<bool name="tv">true</bool>
</lst>
<arr name="last-components">
<str>tvComponent</str>
</arr>
</requestHandler>
also I made requestDispatcher to true for handleSelect option .
Any small help is really appreciated.
--
View this message in context:
http://lucene.472066.n3.nabble.com/Unable-to-get-Offsets-using-Solr-TermVectorComponent-tp4135049.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]