TopNSearcher

constructor(fst: FST<T>, topN: Int, maxQueueDepth: Int, comparator: Comparator<T>, pathComparator: Comparator<Util.FSTPath<T>>)


constructor(fst: FST<T>, topN: Int, maxQueueDepth: Int, comparator: Comparator<T>)

Creates an unbounded TopNSearcher

Parameters

topN

the number of top scoring entries to retrieve

maxQueueDepth

the maximum size of the queue of possible top entries

comparator

the comparator to select the top N