Example usage for org.apache.lucene.search.suggest.fst WFSTCompletionLookup load

List of usage examples for org.apache.lucene.search.suggest.fst WFSTCompletionLookup load

Introduction

In this page you can find the example usage for org.apache.lucene.search.suggest.fst WFSTCompletionLookup load.

Prototype

@Override
    public boolean load(DataInput input) throws IOException 

Source Link

Usage

From source file:org.opengrok.suggest.SuggesterProjectData.java

License:Open Source License

private WFSTCompletionLookup loadStoredWFST(final File file) throws IOException {
    try (FileInputStream fis = new FileInputStream(file)) {
        WFSTCompletionLookup lookup = createWFST();
        lookup.load(fis);
        return lookup;
    }/*from w  w  w.j  a v a2 s . com*/
}