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 HossMan:
http://wiki.apache.org/solr/CommonQueryParameters

The comment on the change is:
correcting some mistakes regarding sort

------------------------------------------------------------------------------
  
  ||||'''Examples'''||
  ||'''sort'''||'''Meaning'''||
- || ||by default, it will sort by "score" ||
- ||score || same as default||
+ || ||by default, it is the same as `score desc`||
+ ||`score desc`||sort from highest score to lowest score||
- ||price desc||sort in descending order of the "price" field||
+ ||`price asc`||sort in ascending order of the "price" field||
- ||inStock desc, price asc||sort by "inStock" descending, then "price" 
ascending||
+ ||`inStock desc, price asc`||sort by "inStock" descending, then "price" 
ascending||
  
  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)
  
@@ -22, +22 @@

  
  NOTE:
  
+    1. A sort ordering must include a field name (or `score` as a fake field), 
followed by whitespace (escaped as `+` or `%20` in URL strings), followed by a 
sort direction (`asc` or `desc`).
+    1. Multiple sort orderings can be separated by a comma, ie: `sort=<field 
name>+<direction>[,<field name>+<direction>]...` 
- 1.The space must exist when specifying the sorting order. i.e. they should be 
escaped by a + or %20 in param string
- 
- 2.multiple sort order can be assigned by "sort=<field name>[+<order>],<field 
name>[+<order>],..." , order sensitive
  
  [[Anchor(start)]]
  == start ==

Reply via email to