Return-Path: Delivered-To: apmail-lucene-solr-commits-archive@minotaur.apache.org Received: (qmail 94642 invoked from network); 14 Dec 2009 09:27:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 09:27:29 -0000 Received: (qmail 39092 invoked by uid 500); 14 Dec 2009 09:27:28 -0000 Delivered-To: apmail-lucene-solr-commits-archive@lucene.apache.org Received: (qmail 39017 invoked by uid 500); 14 Dec 2009 09:27:28 -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 39008 invoked by uid 99); 14 Dec 2009 09:27:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 09:27:28 +0000 X-ASF-Spam-Status: No, hits=-1998.5 required=10.0 tests=ALL_TRUSTED,WEIRD_PORT 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; Mon, 14 Dec 2009 09:27:27 +0000 Received: from eos.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id 1665416E2A for ; Mon, 14 Dec 2009 09:27:06 +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: Mon, 14 Dec 2009 09:27:05 -0000 Message-ID: <20091214092705.29087.34574@eos.apache.org> Subject: =?utf-8?q?=5BSolr_Wiki=5D_Update_of_=22SpellCheckComponent=22_by_ShalinMa?= =?utf-8?q?ngar?= 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 "SpellCheckComponent" page has been changed by ShalinMangar. The comment on this change is: Added note on distributed setups. http://wiki.apache.org/solr/SpellCheckComponent?action=3Ddiff&rev1=3D39&rev= 2=3D40 -------------------------------------------------- = The existing converter uses a relatively simple Regex to extract out the = basic query terms from a query and create tokens from them. = + <> + =3D Distributed Search Support =3D + = + [[Solr1.5]] + = + SpellCheckComponent now supports distributed setups. If you are using Spe= llCheckComponent on a request handler other than "/select", then you need t= o provide the following two parameters: + * "shards" - See DistributedSearch + * "shards.qt" - Signals Solr that requests to shards should be sent to a= request handler given by this parameter + = + For example: + {{{ + http://solr:8983/solr/select?q=3D*:*&spellcheck=3Dtrue&spellcheck.build= =3Dtrue&spellcheck.q=3Dtoyata&qt=3Dspell&shards.qt=3Dspell&shards=3Dsolr-sh= ard1:8983/solr,solr-shard2:8983/solr + }}} + = + If SpellCheckComponent is added to the /select request handler, then the = "shards.qt" parameter is not required. + = + In case of a distributed request to SpellCheckComponent, the shards are r= equested for at least five suggestions even if "spellcheck.count" is less t= han five. Once the suggestions are collected, they are ranked by the config= ured distance measure (default is Levenstein Distance) and then by aggregat= e frequency. = =3D History =3D For discussion of the development of this feature, see [[https://issues.a= pache.org/jira/browse/SOLR-572|SOLR-572]].