Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 21045 invoked from network); 25 Oct 2009 22:59:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 22:59:34 -0000 Received: (qmail 41977 invoked by uid 500); 25 Oct 2009 22:59:34 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 41903 invoked by uid 500); 25 Oct 2009 22:59:33 -0000 Mailing-List: contact solr-commits-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-commits@lucene.apache.org Received: (qmail 41894 invoked by uid 99); 25 Oct 2009 22:59:33 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 22:59:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.130] (HELO eos.apache.org) (140.211.11.130) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 22:59:31 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 5EFFD16E2E for ; Sun, 25 Oct 2009 22:59:10 +0000 (GMT) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Sun, 25 Oct 2009 22:59:10 -0000 Message-ID: <20091025225910.13344.22221@eos.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Trivial_Update_of_=22FAQ=22_by_YonikSeeley?= X-Virus-Checked: Checked by ClamAV on apache.org Dear Wiki user, You have subscribed to a wiki page or wiki category on "Solr Wiki" for chan= ge 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=3Ddiff&rev1=3D61&rev2=3D62 -------------------------------------------------- =3D=3D What are the Requirements for running a Solr server? =3D=3D = Solr requires Java 1.5 and an Application server (such as Tomcat) which s= upports the Servlet 2.4 standard. - = - The Replication features of Solr currently require an OS with the ability= to create hard links and rsync. = =3D=3D How can I get started playing with Solr? =3D=3D = @@ -67, +65 @@ = =3D=3D I POSTed some documents, why don't they show up when I search? =3D= =3D = - Documents that have been added to the index don't show up in search resul= ts until a message has been POSTed as well. This allows you to PO= ST 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 circ= umstances 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 doc= s added since the last may now show up in search results.) + Documents that have been added to the index don't show up in search resul= ts until a commit is done (one way is to POST a message to the XM= L 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 fi= nished. = =3D=3D How can I delete all documents from my index? =3D=3D = @@ -76, +74 @@ This has been optimized to be more efficient then deleting by some arbitr= ary query which matches all docs because of the nature of the data. = =3D=3D How can I rebuild my index from scratch if I change my schema? =3D= =3D - = - 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 exis= ting index and make a new one) - 1. Re-Index your data - = - If the permission scheme of your server does not allow you to manually de= lete 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: {{{*:*}}} + 1. Delete the `index` directory in your data directory, or alternately u= se the "match all docs" query in a delete by query command before shutting = down Solr: {{{*:*}}} 1. Send an {{{}}} command. 1. Re-Index your data = + One can also delete all documents, change the schema.xml file, and then r= eload the core w/o shutting down Solr. - It's very important to send the "optimize" command before re-indexing. E= ven though you've deleted all the documents, some low level Lucene metadata= about the fields those documents had will still be there, and will influen= ce how future documents with the same field names are indexed - = = =3D=3D How can I update a specific field of an existing document? =3D=3D =20