Interface QueryIndexer
- All Known Implementing Classes:
LuceneQuerySuggester
public interface QueryIndexer
-
Method Summary
Modifier and TypeMethodDescriptionindex
(Iterable<SuggestRecord> suggestions, long modificationTime)
-
Method Details
-
getIndexModTime
Instant getIndexModTime()- Returns:
- The time of the last successful indexing
-
index
CompletableFuture<Void> index(Iterable<SuggestRecord> suggestions, long modificationTime) throws IOException - Parameters:
suggestions
- the suggestions to indexmodificationTime
- timestamp (millis) of the data origin- Returns:
- future that is ready as soon as the indexation is done
- Throws:
IOException
- in case indexation fails
-