Example of running the ExtractingRequestHandler with extract only:

 # WARNING: This handler doesn't take quite these same parameters in the Solr 1.4 release.
 # Instead try something more like
 #  curl http://localhost:8983/solr/update/extract?extractOnly=true
 #           --data-binary @tutorial.html  -H 'Content-type:text/html'
 curl http://localhost:8983/solr/update/extract?ext.idx.attr=true\&ext.extract.only=true\&ext.def.fl=text  --data-binary @tutorial.html  -H 'Content-type:text/html'

Results in:

<response>
<lst name="responseHeader"><int name="status">0</int><int name="QTime">58</int></lst><str>




&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
    &lt;head&gt;
        &lt;title&gt;Solr tutorial (version 1.3.0.2008.09.16.15.17.27)&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
        &lt;a href="http://www.apache.org/"&gt;apache&lt;/a&gt; &amp;gt; &lt;a
            href="http://lucene.apache.org/"&gt;lucene&lt;/a&gt;





&lt;a
            href="http://lucene.apache.org/"/&gt;




&lt;a
                    href="http://lucene.apache.org/solr/"/&gt;





  
                    




&lt;ul&gt;
&lt;li&gt;
&lt;a
                    href="index.html"&gt;Main&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
            href="http://wiki.apache.org/solr"&gt;Wiki&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;













              
           



About


&lt;a
            href="index.html"&gt;Welcome&lt;/a&gt;


&lt;a
            href="who.html"&gt;Who We Are&lt;/a&gt;


Documentation


&lt;a
            href="features.html"&gt;Features&lt;/a&gt;


Tutorial


&lt;a
            href="http://wiki.apache.org/solr/"&gt;Docs (Wiki)&lt;/a&gt;


&lt;a
            href="http://wiki.apache.org/solr/FAQ"&gt;FAQ&lt;/a&gt;


&lt;a
            href="api/index.html"&gt;All Javadoc&lt;/a&gt;


&lt;a
            href="api/solrj/index.html"&gt;SolrJ Javadoc&lt;/a&gt;


Resources


&lt;a
            href="http://www.apache.org/dyn/closer.cgi/lucene/solr/"&gt;Download&lt;/a&gt;


&lt;a
            href="mailing_lists.html"&gt;Mailing Lists&lt;/a&gt;


&lt;a
            href="issue_tracking.html"&gt;Issue Tracking&lt;/a&gt;


&lt;a
            href="version_control.html"&gt;Version Control&lt;/a&gt;


Related Projects


&lt;a
            href="http://lucene.apache.org/java/"&gt;Lucene Java&lt;/a&gt;


&lt;a
            href="http://lucene.apache.org/nutch/"&gt;Nutch&lt;/a&gt;




      This document is for Apache Solr version 1.3.0.2008.09.16.15.17.27.  If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
        









&lt;a
                    href="tutorial.pdf"&gt;
        PDF&lt;/a&gt;

&lt;h1&gt;Solr tutorial&lt;/h1&gt;

      This document is for Apache Solr version 1.3.0.2008.09.16.15.17.27.  If you are using a different version of Solr, please consult the documentation that was distributed with the version you are using.
        

&lt;ul&gt;
&lt;li&gt;
&lt;a
                    href="#Overview"&gt;Overview&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                    href="#Requirements"&gt;Requirements&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                    href="#Getting+Started"&gt;Getting Started&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                    href="#Indexing+Data"&gt;Indexing Data&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                            href="#Updating+Data"&gt;Updating Data&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a
                    href="#Deleting+Data"&gt;Deleting Data&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                            href="#Querying+Data"&gt;Querying Data&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a
                    href="#Sorting"&gt;Sorting&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
                            href="#Text+Analysis"&gt;Text Analysis&lt;/a&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a
                    href="#Analysis+Debugging"&gt;Analysis Debugging&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a
            href="#Conclusion"&gt;Conclusion&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;



&lt;a href=""/&gt;
        &lt;a
            href=""/&gt;
&lt;h2&gt;Overview&lt;/h2&gt;

&lt;p&gt;
This document covers the basics of running Solr using an example
schema, and some sample data.
&lt;/p&gt;



&lt;a href=""/&gt;
        &lt;a
                    href=""/&gt;
&lt;h2&gt;Requirements&lt;/h2&gt;

&lt;p&gt;
To follow along with this tutorial, you will need...
&lt;/p&gt;
&lt;ol&gt;
  
&lt;li&gt;Java 1.5 or greater.  Some places you can get it are from
  &lt;a
                    href="http://java.sun.com/j2se/downloads.html"&gt;Sun&lt;/a&gt;,
  &lt;a
                    href="http://www-106.ibm.com/developerworks/java/jdk/"&gt;IBM&lt;/a&gt;, or
  &lt;a
                    href="http://www.bea.com/jrockit/"&gt;BEA&lt;/a&gt;.
  
  Running java -version at the command line should indicate a version
  number starting with 1.5.
  &lt;/li&gt;
  
&lt;li&gt;A &lt;a
            href="http://www.apache.org/dyn/closer.cgi/lucene/solr/"&gt;Solr release&lt;/a&gt;.
  &lt;/li&gt;
  
&lt;li&gt;FireFox or Mozilla is the preferred browser to view the admin pages, as
    the current stylesheet doesn't look good on Internet Explorer.
  &lt;/li&gt;

&lt;/ol&gt;



&lt;a href=""/&gt;
        &lt;a
                href=""/&gt;
&lt;h2&gt;Getting Started&lt;/h2&gt;

&lt;p&gt;

Please run the browser showing this tutorial and the Solr server on the same machine so tutorial links will correctly point to your Solr server.

&lt;/p&gt;
&lt;p&gt;
Begin by unziping the Solr release and changing your working directory
to be the "example" directory.  (Note that the base directory name may vary with the version of Solr downloaded.)
&lt;/p&gt;
&lt;pre&gt;
chrish@asimov:~solr$ ls
solr-nightly.zip
chrish@asimov:~solr$ unzip -q solr-nightly.zip
chrish@asimov:~solr$ cd solr-nightly/example/
&lt;/pre&gt;
&lt;p&gt;
Solr can run in any Java Servlet Container of your choice, but to simplify
this tutorial, the example index includes a small installation of Jetty.  In order to compile JSPs, this version of Jetty requires that you run "java" from a JDK, not from a JRE.
&lt;/p&gt;
&lt;p&gt;
To launch Jetty with the Solr WAR, and the example configs, just run the start.jar ...
&lt;/p&gt;
&lt;pre&gt;
chrish@asimov:~/solr/example$ java -jar start.jar
1 [main] INFO org.mortbay.log - Logging to org.slf4j.impl.SimpleLogger@1f436f5 via org.mortbay.log.Slf4jLog
334 [main] INFO org.mortbay.log - Extract jar:file:/home/chrish/solr/example/webapps/solr.war!/ to /tmp/Jetty__solr/webapp
Feb 24, 2006 5:54:52 PM org.apache.solr.servlet.SolrServlet init
INFO: user.dir=/home/chrish/solr/example
Feb 24, 2006 5:54:52 PM org.apache.solr.core.SolrConfig &amp;lt;clinit&amp;gt;
INFO: Loaded Config solrconfig.xml

...

1656 [main] INFO org.mortbay.log - Started SelectChannelConnector @ 0.0.0.0:8983
&lt;/pre&gt;
&lt;p&gt;
This will start up the Jetty application server on port 8983, and use your terminal to display the logging information from Solr.
&lt;/p&gt;
&lt;p&gt;
You can see that the Solr is running by loading &lt;a
            href="http://localhost:8983/solr/admin/"&gt;http://localhost:8983/solr/admin/&lt;/a&gt; in your web browser.  This is the main starting point for Administering Solr.
&lt;/p&gt;





&lt;a href=""/&gt;
        &lt;a
                href=""/&gt;
&lt;h2&gt;Indexing Data&lt;/h2&gt;

&lt;p&gt;
Your Solr server is up and running, but it doesn't contain any data.  You can modify a Solr index by POSTing XML Documents containing 
instructions to add (or update) documents, delete documents, commit pending adds and deletes, and optimize your index.  
&lt;/p&gt;
&lt;p&gt;
The exampledocs directory contains samples of the types of instructions Solr expects, as well as a java utility for posting 
them from the command line (a post.sh shell script is also available, but for this tutorial we'll use the cross-platform Java
client).
&lt;/p&gt;
&lt;p&gt;
To try this, open a new terminal window, enter the exampledocs directory, and run "java -jar post.jar" on some of the 
XML files in that directory, indicating the URL of the Solr server:
&lt;/p&gt;
&lt;pre&gt;
chrish@asimov:~/solr/example/exampledocs$ java -jar post.jar solr.xml monitor.xml 
SimplePostTool: version 1.2
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file solr.xml
SimplePostTool: POSTing file monitor.xml
SimplePostTool: COMMITting Solr index changes..
&lt;/pre&gt;
&lt;p&gt;
You have now indexed two documents in Solr, and committed these changes.  
You can now search for "solr" using the "Make a Query" interface on the Admin screen, and you should get one result.  
Clicking the "Search" button should take you to the following URL...
&lt;/p&gt;
&lt;p&gt;

&lt;a
                href="http://localhost:8983/solr/select/?stylesheet=&amp;amp;q=solr&amp;amp;version=2.1&amp;amp;start=0&amp;amp;rows=10&amp;amp;indent=on"&gt;http://localhost:8983/solr/select/?stylesheet=&amp;amp;q=solr&amp;amp;version=2.1&amp;amp;start=0&amp;amp;rows=10&amp;amp;indent=on&lt;/a&gt;

&lt;/p&gt;
&lt;p&gt;
You can index all of the sample data, using the following command (assuming your shell supports the *.xml notation):
&lt;/p&gt;
&lt;pre&gt;
chrish@asimov:~/solr/example/exampledocs$ java -jar post.jar *.xml
SimplePostTool: version 1.2
SimplePostTool: WARNING: Make sure your XML documents are encoded in UTF-8, other encodings are not currently supported
SimplePostTool: POSTing files to http://localhost:8983/solr/update..
SimplePostTool: POSTing file hd.xml
SimplePostTool: POSTing file ipod_other.xml
SimplePostTool: POSTing file ipod_video.xml
SimplePostTool: POSTing file mem.xml
SimplePostTool: POSTing file monitor.xml
SimplePostTool: POSTing file monitor2.xml
SimplePostTool: POSTing file mp500.xml
SimplePostTool: POSTing file sd500.xml
SimplePostTool: POSTing file solr.xml
SimplePostTool: POSTing file spellchecker.xml
SimplePostTool: POSTing file utf8-example.xml
SimplePostTool: POSTing file vidcard.xml
SimplePostTool: COMMITting Solr index changes..
&lt;/pre&gt;
&lt;p&gt;
  ...and now you can search for all sorts of things using the default &lt;a
                    href="http://lucene.apache.org/java/docs/queryparsersyntax.html"&gt;Lucene QueryParser syntax&lt;/a&gt;...
&lt;/p&gt;
&lt;ul&gt;
  
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?version=2.1&amp;amp;indent=on&amp;amp;q=video"&gt;video&lt;/a&gt;
&lt;/li&gt;
  
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?version=2.1&amp;amp;indent=on&amp;amp;q=name:video"&gt;name:video&lt;/a&gt;
&lt;/li&gt;
  
&lt;li&gt;
&lt;a
            href="http://localhost:8983/solr/select/?version=2.1&amp;amp;indent=on&amp;amp;q=%2Bvideo+%2Bprice%3A[*+TO+400]"&gt;+video +price:[* TO 400]&lt;/a&gt;
&lt;/li&gt;


&lt;/ul&gt;





&lt;a href=""/&gt;
        &lt;a
                href=""/&gt;
&lt;h2&gt;Updating Data&lt;/h2&gt;

&lt;p&gt;
You may have noticed that even though the file solr.xml has now
been POSTed to the server twice, you still only get 1 result when searching for
"solr".  This is because the example schema.xml specifies a "uniqueKey" field
called "id".  Whenever you POST instructions to Solr to add a
document with the same value for the uniqueKey as an existing document, it
automaticaly replaces it for you.  You can see that that has happened by
looking at the values for numDocs and maxDoc in the
"CORE" section of the statistics page...  &lt;/p&gt;
&lt;p&gt;

&lt;a
            href="http://localhost:8983/solr/admin/stats.jsp"&gt;http://localhost:8983/solr/admin/stats.jsp&lt;/a&gt;

&lt;/p&gt;
&lt;p&gt;
numDoc should be 16 (because some of our 11 example XML files contain more than one &amp;lt;doc&amp;gt;), but maxDoc may be larger as
the maxDoc count includes logically deleted documents that have not yet been removed from the index. You can re-post the sample XML
files over and over again as much as you want and numDocs will never increase,because the new documents will constantly be replacing the old.
&lt;/p&gt;
&lt;p&gt;
Go ahead and edit the existing XML files to change some of the data, and re-run the java -jar post.jar command, you'll see your changes reflected in subsequent searches.
&lt;/p&gt;
&lt;a href=""/&gt;
        &lt;a
                href=""/&gt;
&lt;h3&gt;Deleting Data&lt;/h3&gt;
&lt;p&gt;You can delete data by POSTing a delete command to the update URL and specifying the value
      of the document's unique key field, or a query that matches multiple documents (be careful with that one!).  Since these commands
      are smaller, we will specify them right on the command line rather than reference an XML file.
    &lt;/p&gt;
&lt;p&gt;Execute the following command to delete a document&lt;/p&gt;
&lt;pre&gt;java -Ddata=args -Dcommit=no -jar post.jar "&amp;lt;delete&amp;gt;&amp;lt;id&amp;gt;SP2514N&amp;lt;/id&amp;gt;&amp;lt;/delete&amp;gt;"&lt;/pre&gt;
&lt;p&gt;Now if you go to the &lt;a
                href="http://localhost:8983/solr/admin/stats.jsp"&gt;statistics&lt;/a&gt; page and scroll down
       to the UPDATE_HANDLERS section and verify that "deletesPending : 1"&lt;/p&gt;
&lt;p&gt;If you search for &lt;a
                href="http://localhost:8983/solr/select?q=id:SP2514N"&gt;id:SP2514N&lt;/a&gt; it will still be found,
       because index changes are not visible until changes are flushed to disk, and a new searcher is opened.  To cause
       this to happen, send a commit command to Solr (post.jar does this for you by default):&lt;/p&gt;
&lt;pre&gt;java -jar post.jar&lt;/pre&gt;
&lt;p&gt;Now re-execute the previous search and verify that no matching documents are found.  Also revisit the
    statistics page and observe the changes in both the UPDATE_HANDLERS section and the CORE section.&lt;/p&gt;
&lt;p&gt;Here is an example of using delete-by-query to delete anything with
      &lt;a
                href="http://localhost:8983/solr/select?q=name:DDR&amp;amp;fl=name"&gt;DDR&lt;/a&gt; in the name:&lt;/p&gt;
&lt;pre&gt;java -Ddata=args -jar post.jar "&amp;lt;delete&amp;gt;&amp;lt;query&amp;gt;name:DDR&amp;lt;/query&amp;gt;&amp;lt;/delete&amp;gt;"&lt;/pre&gt;
&lt;p&gt;Commit can be a very expensive operation so it's best to make many changes to an index in a batch and
      then send the commit command at the end.  There is also an optimize command that does the same thing as commit,
      in addition to merging all index segments into a single segment, making it faster to search and causing any
      deleted documents to be removed.  All of the update commands are documented &lt;a
            href="http://wiki.apache.org/solr/UpdateXmlMessages"&gt;here&lt;/a&gt;.
    &lt;/p&gt;
&lt;p&gt;To continue with the tutorial, re-add any documents you may have deleted by going to the exampledocs directory and executing&lt;/p&gt;
&lt;pre&gt;java -jar post.jar *.xml&lt;/pre&gt;



&lt;a href=""/&gt;
        &lt;a
                href=""/&gt;
&lt;h2&gt;Querying Data&lt;/h2&gt;

&lt;p&gt;
    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 &lt;a
                    href="http://wiki.apache.org/solr/StandardRequestHandler"&gt;request parameters&lt;/a&gt;
    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...
  &lt;/p&gt;
&lt;ul&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;fl=name,id"&gt;q=video&amp;amp;fl=name,id&lt;/a&gt;       (return only name and id fields)   &lt;/li&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;fl=name,id,score"&gt;q=video&amp;amp;fl=name,id,score&lt;/a&gt;  (return relevancy score as well) &lt;/li&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;fl=*,score"&gt;q=video&amp;amp;fl=*,score&lt;/a&gt;        (return all stored fields, as well as relevancy score)  &lt;/li&gt;
      
&lt;li&gt;
&lt;a
                href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=price desc&amp;amp;fl=name,id"&gt;q=video&amp;amp;sort=price desc&amp;amp;fl=name,id&lt;/a&gt;  (add sort specification: sort by price descending) &lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;
    Solr provides a &lt;a
            href="http://localhost:8983/solr/admin/form.jsp"&gt;query form&lt;/a&gt; within the web admin interface
    that allows setting the various request parameters and is useful when trying out or debugging queries.
  &lt;/p&gt;
&lt;a href=""/&gt;
        &lt;a
                    href=""/&gt;
&lt;h3&gt;Sorting&lt;/h3&gt;
&lt;p&gt;
      Solr provides a simple method to sort on one or more indexed fields.
      Use the 'sort' parameter to specify "field direction" pairs...
    &lt;/p&gt;
&lt;ul&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=price+desc"&gt;q=video&amp;amp;sort=price desc&lt;/a&gt;
&lt;/li&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=price+asc"&gt;q=video&amp;amp;sort=price asc&lt;/a&gt;
&lt;/li&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=inStock+asc,price+desc"&gt;q=video&amp;amp;sort=inStock asc, price desc&lt;/a&gt;
&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;
      "score" can also be used as a field name when specifying a sort...
    &lt;/p&gt;
&lt;ul&gt;
      
&lt;li&gt;
&lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=score+desc"&gt;q=video&amp;amp;sort=score desc&lt;/a&gt;
&lt;/li&gt;
      
&lt;li&gt;
&lt;a
            href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=video&amp;amp;sort=inStock+asc,score+desc"&gt;q=video&amp;amp;sort=inStock asc, score desc&lt;/a&gt;
&lt;/li&gt;
    
&lt;/ul&gt;
&lt;p&gt;
      If no sort is specified, the default is score desc, the same as in the Lucene search APIs.
    &lt;/p&gt;



&lt;a href=""/&gt;
        &lt;a
                    href=""/&gt;
&lt;h2&gt;Text Analysis&lt;/h2&gt;

&lt;p&gt;
    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.  The same text transformations are normally
    applied to any queries in order to match what is indexed.
  &lt;/p&gt;
&lt;p&gt;Example queries demonstrating relevancy improving transformations:&lt;/p&gt;
&lt;ul&gt;
    
&lt;li&gt;A search for
       &lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=power-shot&amp;amp;fl=name"&gt;power-shot&lt;/a&gt;
       matches PowerShot, and
      &lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=adata&amp;amp;fl=name"&gt;adata&lt;/a&gt;
      matches A-DATA due to the use of WordDelimiterFilter and LowerCaseFilter.
    &lt;/li&gt;

    
&lt;li&gt;A search for
       &lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=name:printers&amp;amp;fl=name"&gt;name:printers&lt;/a&gt;
       matches Printer, and
      &lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=features:recharging&amp;amp;fl=name,features"&gt;features:recharging&lt;/a&gt;
       matches Rechargeable due to stemming with the EnglishPorterFilter.
    &lt;/li&gt;

    
&lt;li&gt;A search for
       &lt;a
                    href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=%221+gigabyte%22&amp;amp;fl=name"&gt;"1 gigabyte"&lt;/a&gt;
       matches things with GB, and
      &lt;a
                href="http://localhost:8983/solr/select/?indent=on&amp;amp;q=pixima&amp;amp;fl=name"&gt;pixima&lt;/a&gt;
       matches Pixma due to use of a SynonymFilter.
    &lt;/li&gt;

  
&lt;/ul&gt;
&lt;p&gt;
    The &lt;a
                href="http://wiki.apache.org/solr/SchemaXml"&gt;schema&lt;/a&gt; defines
    the fields in the index and what type of analysis is applied to them.  The current schema your server is using
    may be accessed via the [SCHEMA] link on the &lt;a
                href="http://localhost:8983/solr/admin/"&gt;admin&lt;/a&gt; page.
  &lt;/p&gt;
&lt;p&gt;A full description of the analysis components, Analyzers, Tokenizers, and TokenFilters
    available for use is &lt;a
            href="http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters"&gt;here&lt;/a&gt;.
  &lt;/p&gt;
&lt;a href=""/&gt;
        &lt;a href=""/&gt;
&lt;h3&gt;Analysis Debugging&lt;/h3&gt;
&lt;p&gt;There is a handy &lt;a
                href="http://localhost:8983/solr/admin/analysis.jsp"&gt;analysis&lt;/a&gt;
      debugging page where you can see how a text value is broken down into words,
      and shows the resulting tokens after they pass through each filter in the chain.
    &lt;/p&gt;
&lt;p&gt;
      
&lt;a
                href="http://localhost:8983/solr/admin/analysis.jsp?name=name&amp;amp;val=Canon+PowerShot+SD500"&gt;This&lt;/a&gt;
      shows how "Canon PowerShot SD500" would be indexed as a value in the name field.  Each row of
      the table shows the resulting tokens after having passed through the next TokenFilter in the Analyzer for the name field.
      Notice how both powershot and power, shot are indexed.  Tokens generated at the same position
      are shown in the same column, in this case shot and powershot.
    &lt;/p&gt;
&lt;p&gt;Selecting &lt;a
                href="http://localhost:8983/solr/admin/analysis.jsp?name=name&amp;amp;verbose=on&amp;amp;val=Canon+PowerShot+SD500"&gt;verbose output&lt;/a&gt;
    will show more details, such as the name of each analyzer component in the chain, token positions, and the start and end positions
    of the token in the original text.
    &lt;/p&gt;
&lt;p&gt;Selecting &lt;a
                href="http://localhost:8983/solr/admin/analysis.jsp?name=name&amp;amp;highlight=on&amp;amp;val=Canon+PowerShot+SD500&amp;amp;qval=power-shot"&gt;highlight matches&lt;/a&gt;
    when both index and query values are provided will take the resulting terms from the query value and highlight
    all matches in the index value analysis.
    &lt;/p&gt;
&lt;p&gt;
&lt;a
            href="http://localhost:8983/solr/admin/analysis.jsp?name=text&amp;amp;highlight=on&amp;amp;val=Four+score+and+seven+years+ago+our+fathers+brought+forth+on+this+continent+a+new+nation%2C+conceived+in+liberty+and+dedicated+to+the+proposition+that+all+men+are+created+equal.+&amp;amp;qval=liberties+and+equality"&gt;Here&lt;/a&gt;
    is an example of stemming and stop-words at work.
    &lt;/p&gt;



&lt;a href=""/&gt;
        &lt;a
                    href=""/&gt;
&lt;h2&gt;Conclusion&lt;/h2&gt;

&lt;p&gt;
  Congratulations!  You successfully ran a small Solr instance, added some documents, and made changes to the index.  You learned about queries, text analysis, and the Solr admin interface.  You're ready to start using Solr on your own project!  Continue on with the following steps:
&lt;/p&gt;
&lt;ul&gt;
  
&lt;li&gt;Subscribe to the Solr &lt;a
            href="mailing_lists.html"&gt;mailing lists&lt;/a&gt;!&lt;/li&gt;
  
&lt;li&gt;Make a copy of the Solr example directory as a template for your project.&lt;/li&gt;
  
&lt;li&gt;Customize the schema and other config in solr/conf/ to meet your needs.&lt;/li&gt; 

&lt;/ul&gt;
&lt;p&gt;
  Have Fun, and we'll see you on the Solr mailing lists!
&lt;/p&gt;





 







        Copyright ©
         2007 &lt;a href="http://www.apache.org/licenses/"&gt;The Apache Software Foundation.&lt;/a&gt;





&lt;/body&gt;
&lt;/html&gt;
</str>
</response>
  • No labels