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 "CommonQueryParameters" by YonikSeeley
Date Thu, 27 Jan 2011 13:28:14 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 YonikSeeley.
The comment on this change is: sort by function query now supports arbitrary functionq queries.
http://wiki.apache.org/solr/CommonQueryParameters?action=diff&rev1=29&rev2=30

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

  ||`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
order||
+ ||`sum(x_f, y_f) desc`|| sort by the sum of x_f and y_f in a descending order||
  
  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)
  
  You can sort by index id using ''sort=_docid_ asc'' or ''sort=_docid_ desc''
  
- 
- As of [[Solr1.5]], sorting can also be done by any single-valued function (as in FunctionQuery).
+ As of [[Solr3.1]], sorting can also be done on arbitrary function queries (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.
  

Mime
View raw message