Author: yonik
Date: Mon Feb 27 12:28:57 2006
New Revision: 381434
URL: http://svn.apache.org/viewcvs?rev=381434&view=rev
Log:
checkpoint save: more query examples, starting analysis section
Modified:
incubator/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
Modified:
incubator/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
URL:
http://svn.apache.org/viewcvs/incubator/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml?rev=381434&r1=381433&r2=381434&view=diff
==============================================================================
--- incubator/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
(original)
+++ incubator/solr/trunk/src/site/src/documentation/content/xdocs/tutorial.xml
Mon Feb 27 12:28:57 2006
@@ -192,8 +192,17 @@
<p>
Searches are done via HTTP GET on the select URL with the query string in
the q parameter.
You can pass a number of optional <a
href="http://wiki.apache.org/solr/StandardRequestHandler">request parameters</a>
- to the request handler to control what information is returned.
+ to the request handler to control what information is returned. For
example, you can use the "fl" parameter
+ to control what stored fields are returned, and if the relevancy score is
returned...
</p>
+
+ <ul>
+ <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">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=name,id">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;price desc&fl=name,id</a> (add sort
specification: sort by price descending) </li>
+ </ul>
+
<p>
Solr provides a <a href="http://localhost:8983/solr/admin/form.jsp">query
form</a> within the web admin interface
that allows setting the various request parameters and is useful when
trying out or debugging queries.
@@ -207,9 +216,9 @@
</p>
<ul>
- <li><a
href="http://localhost:8983/solr/select/?version=2.1&indent=on&q=video%3B+price+desc">video;
price desc</a></li>
- <li><a
href="http://localhost:8983/solr/select/?version=2.1&indent=on&q=video%3B+price+asc">video;
price asc</a></li>
- <li><a
href="http://localhost:8983/solr/select/?version=2.1&indent=on&q=video%3B+inStock+asc+price+desc">video;
inStock asc, price desc</a></li>
+ <li><a
href="http://localhost:8983/solr/select/?indent=on&q=video%;price+desc">video;
price desc</a></li>
+ <li><a
href="http://localhost:8983/solr/select/?indent=on&q=video;price+asc">video;
price asc</a></li>
+ <li><a
href="http://localhost:8983/solr/select/?indent=on&q=video%;inStock+asc+price+desc">video;
inStock asc, price desc</a></li>
</ul>
<p>
@@ -225,7 +234,21 @@
</section>
+<section>
+ <title>Text Analysis</title>
+ <p>
+ Text fields are typically indexed by breaking the field into words and
applying various transformations such as
+ lowercasing, removing plurals, or stemming to increase relevancy.
+ </p>
+
+ <p>TODO</p>
+
+ <p>A more in depth description of the analysis components
+ available is <a
href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters">here</a>.
+ </p>
+
+</section>
<section>