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

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

Introduction

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

Prototype

public Object get(CharSequence key) 

Source Link

Document

Returns the weight associated with an input string, or null if it does not exist.

Usage

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

License:Open Source License

private void removeOldTerms(final ChronicleMapAdapter adapter, final WFSTCompletionLookup lookup) {
    adapter.removeIf(key -> lookup.get(key.toString()) == null);
}