Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 53596 invoked from network); 17 May 2008 03:22:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2008 03:22:28 -0000 Received: (qmail 50623 invoked by uid 500); 17 May 2008 03:22:28 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 50582 invoked by uid 500); 17 May 2008 03:22:28 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 50553 invoked by uid 99); 17 May 2008 03:22:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 20:22:28 -0700 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 May 2008 03:21:40 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BE636234C114 for ; Fri, 16 May 2008 20:21:55 -0700 (PDT) Message-ID: <363324365.1210994515778.JavaMail.jira@brutus> Date: Fri, 16 May 2008 20:21:55 -0700 (PDT) From: "Otis Gospodnetic (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Updated: (LUCENE-852) spellchecker: make hard-coded values configurable In-Reply-To: <7644914.1175077172153.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/LUCENE-852?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Otis Gospodnetic updated LUCENE-852: ------------------------------------ Attachment: LUCENE-852.patch Here is one way of specifying IndexWriter parameters. I'll commit next week. > spellchecker: make hard-coded values configurable > ------------------------------------------------- > > Key: LUCENE-852 > URL: https://issues.apache.org/jira/browse/LUCENE-852 > Project: Lucene - Java > Issue Type: Improvement > Components: contrib/* > Reporter: karin > Assignee: Otis Gospodnetic > Priority: Minor > Attachments: LUCENE-852.patch > > > the class org.apache.lucene.search.spell.SpellChecker uses the following hard-coded values in its method > indexDictionary: > writer.setMergeFactor(300); > writer.setMaxBufferedDocs(150); > this poses problems when the spellcheck index is created on systems with certain limits, i.e. in unix > environments where the ulimit settings are restricted for the user (http://www.gossamer-threads.com/lists/lucene/java-dev/47428#47428). > there are several ways to circumvent this: > 1. add another indexDictionary method with additional parameters: > public void indexDictionary (Dictionary dict, int mergeFactor, int maxBufferedDocs) throws IOException > > 2. add setter methods for mergeFactor and maxBufferedDocs > (see code in http://www.gossamer-threads.com/lists/lucene/java-dev/47428#47428 ) > 3. Make SpellChecker subclassing easier as suggested by Chris Hostetter > (see reply http://www.gossamer-threads.com/lists/lucene/java-dev/47463#47463) > thanx, > karin -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org