Issue Details (XML | Word | Printable)

Key: LUCENE-852
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Otis Gospodnetic
Reporter: karin
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

spellchecker: make hard-coded values configurable

Created: 28/Mar/07 10:18 AM   Updated: 22/May/08 06:48 AM
Return to search
Component/s: contrib/*
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works LUCENE-852.patch 2008-05-22 06:45 AM Otis Gospodnetic 2 kB
Text File Licensed for inclusion in ASF works LUCENE-852.patch 2008-05-17 03:20 AM Otis Gospodnetic 2 kB

Lucene Fields: Patch Available, New
Resolution Date: 22/May/08 06:48 AM


 Description  « Hide
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



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.