Hi.

Once a lookup has been built using a AnalyzingInfixSuggester, how can it be 
commited to disk such that it doesn't have to be built again? Old documentation 
shows a 'Commit' method that has since been removed.

The lookup is built and works fine first time around, but I can't figure out 
how to reload it.

using (var dir = FSDirectory.Open(_indexDirectory))
           {
                using (var analyzer = new 
StandardAnalyzer(LuceneVersion.LUCENE_48))
                {
                    var suggester = new 
AnalyzingInfixSuggester(LuceneVersion.LUCENE_48, dir, analyzer);

                    // Build
                    //suggester.Build(new 
DocumentIterator(documents.GetEnumerator()));
                }
            }

Kind regards,
David

Reply via email to