11.05.2016 Views

Apache Solr Reference Guide Covering Apache Solr 6.0

21SiXmO

21SiXmO

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Boolean<br />

Parameters<br />

Description<br />

Type<br />

tv Should the component run or not boolean<br />

tv.docIds<br />

Returns term vectors for the specified list of Lucene document IDs (not the<br />

<strong>Solr</strong> Unique Key).<br />

comma<br />

seperated<br />

integers<br />

tv.fl Returns term vectors for the specified list of fields. If not specified, the fl para<br />

meter is used.<br />

comma<br />

seperated list<br />

of field names<br />

tv.all A shortcut that invokes all the boolean parameters listed below. boolean<br />

tv.df<br />

Returns the Document Frequency (DF) of the term in the collection. This can<br />

be computationally expensive.<br />

boolean<br />

tv.offsets Returns offset information for each term in the document. boolean<br />

tv.positions Returns position information. boolean<br />

tv.payloads Returns payload information. boolean<br />

tv.tf Returns document term frequency info per term in the document. boolean<br />

tv.tf_idf Calculates TF*IDF for each term. Requires the parameters tv.tf and tv.df<br />

to be "true". This can be computationally expensive. (The results are not<br />

shown in example output)<br />

boolean<br />

To learn more about TermVector component output, see the Wiki page: http://wiki.apache.org/solr/TermVectorC<br />

omponentExampleOptions<br />

For schema requirements, see the Wiki page: http://wiki.apache.org/solr/FieldOptionsByUseCase<br />

<strong>Solr</strong>J and the Term Vector Component<br />

Neither the <strong>Solr</strong>Query class nor the QueryResponse class offer specific method calls to set Term Vector<br />

Component parameters or get the "termVectors" output. However, there is a patch for it: SOLR-949.<br />

The Stats Component<br />

The Stats component returns simple statistics for numeric, string, and date fields within the document set.<br />

The sample queries in this section assume you are running the " techproducts" example included with <strong>Solr</strong>:<br />

bin/solr -e techproducts<br />

Stats Component Parameters<br />

The Stats Component accepts the following parameters:<br />

<strong>Apache</strong> <strong>Solr</strong> <strong>Reference</strong> <strong>Guide</strong> <strong>6.0</strong><br />

385

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!