On Mar 16, 2007, at 3:28 PM, [EMAIL PROTECTED] wrote:
+ <str name="spellcheckerIndexDir">/home/otis/dev/repos/lucene/ solr/trunk/example/solr/data/index</str>

And this needs to be changed to something globally relevant. What triggers the creation of this index? With this part of the example, we ought to flesh it out so that it works for anyone trying out Solr, right?

+    public void init(NamedList args) {
+        super.init( args );
+ spellcheckerIndexDir = invariants.get ("spellcheckerIndexDir");
+        try {
+ spellChecker = new SpellChecker (FSDirectory.getDirectory(spellcheckerIndexDir));
+        } catch (IOException e) {
+ throw new RuntimeException("Cannot open SpellChecker index", e);
+        }
+    }

If this index were updated, what would trigger it to get refreshed by this request handler?



Reply via email to