Interface SearchEngine


@Beta public interface SearchEngine
The SearchEngine is the main entry point for indexing and searching.
Since:
2.21.0
  • Method Details

    • getSearchableTypes

      Collection<SearchableType> getSearchableTypes()
      Returns a list of searchable types.
      Returns:
      collection of searchable types
    • forType

      <T> SearchEngine.ForType<T> forType(Class<T> type)
      Returns a type specific api which can be used to index objects of that specific type.
      Type Parameters:
      T - type of object
      Parameters:
      type - type of object
      Returns:
      type specific index and search api
      Since:
      2.23.0
    • forType

      Returns an api which can be used to index and search object of that type.
      Parameters:
      name - name of type
      Returns:
      search and index api
      Since:
      2.23.0
    • forIndices

      Returns an api which allows the modification of multiple indices at once.
      Returns:
      api to modify multiple indices
      Since:
      2.23.0