Interface QueryIndexer

All Known Implementing Classes:
LuceneQuerySuggester

public interface QueryIndexer
  • 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 index
      modificationTime - timestamp (millis) of the data origin
      Returns:
      future that is ready as soon as the indexation is done
      Throws:
      IOException - in case indexation fails