Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Lucene: Java-Dev

[jira] Created: (LUCENE-852) spellchecker: make hard-coded values configurable

 

 

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded


jira at apache

Mar 28, 2007, 3:19 AM

Post #1 of 1 (479 views)
Permalink
[jira] Created: (LUCENE-852) spellchecker: make hard-coded values configurable

spellchecker: make hard-coded values configurable
-------------------------------------------------

Key: LUCENE-852
URL: https://issues.apache.org/jira/browse/LUCENE-852
Project: Lucene - Java
Issue Type: Improvement
Reporter: karin


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
environment where the ulimit setting 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 [at] lucene
For additional commands, e-mail: java-dev-help [at] lucene

Lucene java-dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.