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] Trivial Update of "FAQ" by YonikSeeley
Date Sun, 25 Oct 2009 22:59:10 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "FAQ" page has been changed by YonikSeeley.
The comment on this change is: updates for more recent solr versions.
http://wiki.apache.org/solr/FAQ?action=diff&rev1=61&rev2=62

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

  == What are the Requirements for running a Solr server? ==
  
  Solr requires Java 1.5 and an Application server (such as Tomcat) which supports the Servlet
2.4 standard.
- 
- The Replication features of Solr currently require an OS with the ability to create hard
links and rsync.
  
  == How can I get started playing with Solr? ==
  
@@ -67, +65 @@

  
  == I POSTed some documents, why don't they show up when I search? ==
  
- Documents that have been added to the index don't show up in search results until a <commit/>
message has been POSTed as well. This allows you to POST many documents in succession and
know that none of them will be visible to search clients until you have finished. (Note however,
that in some circumstances users ''may'' see your changes even though you haven't POSTed a
<commit/>. For instance, when Solr is restarted, some or even all of the docs added
since the last <commit/> may now show up in search results.)
+ Documents that have been added to the index don't show up in search results until a commit
is done (one way is to POST a <commit/> message to the XML update handler). This allows
you to POST many documents in succession and know that none of them will be visible to search
clients until you have finished.
  
  == How can I delete all documents from my index? ==
  
@@ -76, +74 @@

  This has been optimized to be more efficient then deleting by some arbitrary query which
matches all docs because of the nature of the data.
  
  == How can I rebuild my index from scratch if I change my schema? ==
- 
- The most efficient/complete way is to...
- 
-  1. Stop your application server
-  1. Change your schema.xml file
-  1. Delete the `index` directory in your data directory
-  1. Start your application server (Solr will detect that there is no existing index and
make a new one)
-  1. Re-Index your data
- 
- If the permission scheme of your server does not allow you to manually delete the `index`
directory an alternate technique is...
  
   1. Stop your application server
   1. Change your schema.xml file
   1. Start your application server
-  1. Use the "match all docs" query in a delete by query command: {{{<delete><query>*:*</query></delete>}}}
+  1. Delete the `index` directory in your data directory, or alternately use the "match all
docs" query in a delete by query command before shutting down Solr: {{{<delete><query>*:*</query></delete>}}}
   1. Send an {{{<optimize/>}}} command.
   1. Re-Index your data
  
+ One can also delete all documents, change the schema.xml file, and then reload the core
w/o shutting down Solr.
- It's very important to send the "optimize" command before re-indexing.  Even though you've
deleted all the documents, some low level Lucene metadata about the fields those documents
had will still be there, and will influence how future documents with the same field names
are indexed
- 
  
  == How can I update a specific field of an existing document? ==
  

Mime
View raw message