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 yo...@apache.org on 2007/06/07 00:55:44 UTC
svn commit: r544982 -
/lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
Author: yonik
Date: Wed Jun 6 15:55:43 2007
New Revision: 544982
URL: http://svn.apache.org/viewvc?view=rev&rev=544982
Log:
fix sorting urls
Modified:
lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
Modified: lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml?view=diff&rev=544982&r1=544981&r2=544982
==============================================================================
--- lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml (original)
+++ lucene/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml Wed Jun 6 15:55:43 2007
@@ -256,7 +256,7 @@
<li><a href="http://localhost:8983/solr/select/?indent=on&q=video&fl=name,id">q=video&fl=name,id</a> (return only name and id fields) </li>
<li><a href="http://localhost:8983/solr/select/?indent=on&q=video&fl=name,id,score">q=video&fl=name,id,score</a> (return relevancy score as well) </li>
<li><a href="http://localhost:8983/solr/select/?indent=on&q=video&fl=*,score">q=video&fl=*,score</a> (return all stored fields, as well as relevancy score) </li>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video;price desc&fl=name,id">q=video&sort=price desc&fl=name,id</a> (add sort specification: sort by price descending) </li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=price desc&fl=name,id">q=video&sort=price desc&fl=name,id</a> (add sort specification: sort by price descending) </li>
</ul>
<p>
@@ -268,21 +268,22 @@
<title>Sorting</title>
<p>
- Solr provides a simple extension to the Lucene QueryParser syntax for specifying sort options. Use the 'sort' parameter to specify "field direction" pairs...
+ Solr provides a simple method to sort on one or more indexed fields.
+ Use the 'sort' parameter to specify "field direction" pairs...
</p>
<ul>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=price+desc">video; price desc</a></li>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=price+asc">video; price asc</a></li>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=inStock+asc+price+desc">video; inStock asc, price desc</a></li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=price+desc">q=video&sort=price desc</a></li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=price+asc">q=video&sort=price asc</a></li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=inStock+asc,price+desc">q=video&sort=inStock asc, price desc</a></li>
</ul>
<p>
"score" can also be used as a field name when specifying a sort...
</p>
<ul>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=score+desc">video; score desc</a></li>
- <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=inStock+asc,score+desc">video; inStock asc, score desc</a></li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=score+desc">q=video&sort=score desc</a></li>
+ <li><a href="http://localhost:8983/solr/select/?indent=on&q=video&sort=inStock+asc,score+desc">q=video&sort=inStock asc, score desc</a></li>
</ul>
<p>