public interface ITmSeeker extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the searcher
|
List<TmHit> |
searchExact(TextFragment query,
Metadata metadata)
Get a list of exact matches for a given text fragment, taking inline codes in account.
|
List<TmHit> |
searchFuzzy(TextFragment query,
int threshold,
int maxHits,
Metadata metadata)
Get a list of fuzzy matches for a given text fragment, taking inline codes in account.
|
List<TmHit> searchExact(TextFragment query, Metadata metadata)
query - the fragment to search formetadata - the metadata attributes to also match against, null for no metadata.OkapiIOException - if the search cannot be completed due to I/O problemsList<TmHit> searchFuzzy(TextFragment query, int threshold, int maxHits, Metadata metadata)
query - the fragment to search for.threshold - the minimal score value to return.maxHits - the max number of hits returned.metadata - the metadata attributes to also match against, null for no metadata.OkapiIOException - if the search cannot be completed do to I/O problemsvoid close()
close in interface AutoCloseableCopyright © 2021. All rights reserved.