Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id F0E1A7A51 for ; Mon, 24 Oct 2011 15:45:58 +0000 (UTC) Received: (qmail 26956 invoked by uid 500); 24 Oct 2011 15:45:57 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 26890 invoked by uid 500); 24 Oct 2011 15:45:57 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 26872 invoked by uid 99); 24 Oct 2011 15:45:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 15:45:57 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Oct 2011 15:45:53 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 80032319E84 for ; Mon, 24 Oct 2011 15:43:33 +0000 (UTC) Date: Mon, 24 Oct 2011 15:43:33 +0000 (UTC) From: "Robert Muir (Commented) (JIRA)" To: dev@lucene.apache.org Message-ID: <637252521.8968.1319471013525.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <585438452.16067.1319129590880.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-2848) DirectSolrSpellChecker fails in distributed environment MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-2848?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13134160#comment-13134160 ] Robert Muir commented on SOLR-2848: ----------------------------------- {quote} The problem now we have is we've got a spellchecker that doesn't fully implement a StringDistance all the time. {quote} we should fix that hack as i mentioned I think (its just a hack, caused by me, sorry!). But then we should think about how to make sure that SpellChecker subclasses always work correctly distributed if we aren't going to change the wire format. Rather than instanceof/StringDistance maybe we could add a merge() method that would be more general? > DirectSolrSpellChecker fails in distributed environment > ------------------------------------------------------- > > Key: SOLR-2848 > URL: https://issues.apache.org/jira/browse/SOLR-2848 > Project: Solr > Issue Type: Bug > Components: SolrCloud, spellchecker > Affects Versions: 4.0 > Reporter: James Dyer > Priority: Minor > Fix For: 4.0 > > Attachments: SOLR-2848.patch > > > While working on SOLR-2585, it was brought to my attention that DirectSolrSpellChecker has no test coverage involving a distributed environment. Here I am adding a random element to DistributedSpellCheckComponentTest to alternate between the "IndexBased" and "Direct" spell checkers. Doing so revealed bugs in using DirectSolrSpellChecker in a distributed environment. The fixes here roughly mirror those made to the "IndexBased" spell checker with SOLR-2083. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org