Hi,

- This is the part I added to the solrconfig.xml:

<searchComponent name="tvComponent"
class="org.apache.solr.handler.component.TermVectorComponent"/>
  
  <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>

- This is the result:

<response>
  <lst name="responseHeader">
    <int name="status">0</int>
    <int name="QTime">0</int>
    <lst name="params">
      <str name="indent">true</str>
      <str name="q">*:*</str>
      <str name="tv">true</str>
      <str name="qt">tvrh</str>
      <str name="wt">xml</str>
    </lst></lst>
    <result name="response" numFound="3" start="0">
      <doc>
        <int name="id">1</int>
        <arr name="test_field">
          <str>iphone chair</str>
        </arr>
        <long name="_version_">1447362558901092352</long>
      </doc>
      <doc>
        <int name="id">2</int>
        <arr name="test_field">
          <str>laptop macbook note</str>
        </arr>
        <long name="_version_">1447362568761901056</long>
      </doc>
      <doc>
        <int name="id">3</int>
        <arr name="test_field">
          <str>iphone is an iphone !</str>
        </arr>
        <long name="_version_">1447362579746783232</long>
      </doc>
    </result>
  </response>

- I don't see any logs about this query

Cheers




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

Reply via email to