Add a .search(automaton: fst::Automaton)
to the TermDictionary
#273
Labels
.search(automaton: fst::Automaton)
to the TermDictionary
#273
This is required for
#219
(sublime text like search) and#272
(FuzzyTermQuery).Note that while similar, they are quite different in that
#219
, the user probably want the list of terms that matched, possibly sorted by a function of the doc frequencies and some function of the query and the term`. (See the ticket comments for some links)#272
, this is effectively a query. The user wants the list of ranked documents.The method already exists is already implemented in the
fst
crate.Unfortunately it does not give access to the automaton state in the resulting
Streamer
.I opened a ticket in the
fst
crate to discuss whether this feature should be added upstream.Otherwise, the
raw
module of thefst
crate exposes enough public API to reimplement the intersection in tantivy if required.The text was updated successfully, but these errors were encountered: