You forgot the qt=<custom-request-handler> parameter, such as on the wiki:

http://localhost:8983/solr/select/?&qt=tvrh&q=includes:[* TO *]&fl=id

And you need the custom request handler, such as on the wiki:

<requestHandler name="tvrh" class="org.apache.solr.handler.component.SearchHandler">
       <lst name="defaults">
               <bool name="tv">true</bool>
       </lst>
       <arr name="last-components">
               <str>tvComponent</str>
       </arr>
</requestHandler>

You can add that "last-components" list to your default handler, if you wish.

I have more detailed examples in my e-book.

-- Jack Krupansky

-----Original Message----- From: alibozorgkhan
Sent: Friday, September 27, 2013 3:04 PM
To: solr-user@lucene.apache.org
Subject: Solr doesn't return TermVectors

I followed http://wiki.apache.org/solr/TermVectorComponent step by step but
with the following request, I don't get any term vectors:


http://localhost:8983/solr/mycol/select?q=id:1211&wt=json&indent=true&tv=true

Just to be sure, I have this in my schema:

   <field name="test_field" type="text_general" indexed="true"
stored="true" required="false" multiValued="true" termVectors="true"
termPositions="true" termOffsets="true"/>

In my solrconfig, I have this:

   <searchComponent name="tvComponent"
class="org.apache.solr.handler.component.TermVectorComponent"/>

Could anyone help me what the problem could be? BTW the solr version is
4.4.0. Thanx



--
View this message in context: http://lucene.472066.n3.nabble.com/Solr-doesn-t-return-TermVectors-tp4092397.html Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to