You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/08/31 23:19:15 UTC

[Solr Wiki] Update of "TermsComponent" by MattWeber

Dear Wiki user,

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

The following page has been changed by MattWeber:
http://wiki.apache.org/solr/TermsComponent

------------------------------------------------------------------------------
   * terms.upper={The upper bound term} - The term to stop at.  Either upper or terms.limit must be set. 
   * terms.upper.incl={true|false} - Include the upper bound term in the result set.  Default is false.
   * terms.raw={true|false} - If true, return the raw characters of the indexed term, regardless of if it is human readable. For instance, the indexed form of numeric numbers is not human readable.  The default is false.
+  * terms.sort={count|index} - If count, sorts the terms by the term frequency (highest count first).  If index, returns the terms in index order.  Default is to sort by count.
  
  The output is a list of the terms and their document frequency values.
  
@@ -33, +34 @@

  
  == Simple ==
  {{{
- http://localhost:8983/solr/terms?terms.fl=name
+ http://localhost:8983/solr/terms?terms.fl=name&terms.sort=index
  }}}
  
  Get back the first ten terms in the name field. 
@@ -70, +71 @@

  
  URL: 
  {{{
- http://localhost:8983/solr/terms?terms.fl=name&terms.lower=a
+ http://localhost:8983/solr/terms?terms.fl=name&terms.lower=a&terms.sort=index
  }}}
  
  Result: