lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Update of "TermVectorComponent" by GrantIngersoll
Date Sat, 03 Jul 2010 01:26:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "TermVectorComponent" page has been changed by GrantIngersoll.
http://wiki.apache.org/solr/TermVectorComponent?action=diff&rev1=14&rev2=15

--------------------------------------------------

   * f.fieldName.tv.tf - Turns on Term Frequency for the fieldName specified.
   * Similar for all the other options above
  
- '''''IF YOU SPECIFY f.fieldName you must also explicitly declare &tv.fl or &fl'''''
+ '''''If you specify f.fieldName you must also explicitly declare &tv.fl or &fl'''''
  
- Example
+ Example:
+ 
+ In this example, all features are requested, but then term frequency is turned off for the
"includes" field (the only field returned)
  
  {{{
- http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=1&indent=on&qt=tvrh&tv=true&tv.all=true&f.text.tv.tf=false&tv.fl=text
+ http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=100&indent=on&qt=tvrh&tv=true&tv.all=true&f.includes.tv.tf=false&tv.fl=includes
+ }}}
+ Also:
+ 
+ In this example, all features are requested, but then offsets are  turned off for the "includes"
field (the only field returned)
+ 
+ {{{
+ http://localhost:8983/solr/select/?q=*%3A*&version=2.2&start=0&rows=100&indent=on&qt=tvrh&tv=true&tv.all=true&f.includes.tv.offsets=false&tv.fl=includes
  }}}
  If you do not specify per field options but still specify a field, it will assume the general
options.
  

Mime
View raw message