lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "CommonQueryParameters" by GrantIngersoll
Date Sat, 12 Dec 2009 22:11:53 GMT
Dear Wiki user,

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

The "CommonQueryParameters" page has been changed by GrantIngersoll.


  ||`score desc`||sort from highest score to lowest score||
  ||`price asc`||sort in ascending order of the "price" field||
  ||`inStock desc, price asc`||sort by "inStock" descending, then "price" ascending||
+ ||`sum(x_td, y_td) desc`|| sort by the sum of the values of x_td and y_td in a descending
  Sorting can be done on the "score" of the document, or on any {{{multiValued="false" indexed="true"}}}
field provided that field is either non-tokenized (ie: has no Analyzer) or uses an Analyzer
that only produces a single Term (ie: uses the !KeywordTokenizer)
+ As of [[Solr1.5]], sorting can also be done by any single-valued function (as in FunctionQuery).
  The common situation for sorting on a field that you do want to be tokenized for searching
is to use a {{{<copyField>}}} to clone your field.  Sort on one, search on the other.

View raw message