Class CompletionFieldsProducer

java.lang.Object
org.apache.lucene.index.Fields
org.apache.lucene.codecs.FieldsProducer
org.apache.lucene.search.suggest.document.CompletionFieldsProducer
All Implemented Interfaces:
Closeable, AutoCloseable, Iterable<String>, Accountable

final class CompletionFieldsProducer extends FieldsProducer implements Accountable
Completion index (.cmp) is opened and read at instantiation to read in SuggestField numbers and their FST offsets in the Completion dictionary (.lkp).

Completion dictionary (.lkp) is opened at instantiation and a field's FST is loaded into memory the first time it is requested via terms(String).

NOTE: Only the footer is validated for Completion dictionary (.lkp) and not the checksum due to random access pattern and checksum validation being too costly at instantiation