Interface ElasticsearchRepository<T,ID>

Type Parameters:
T -
ID -
All Superinterfaces:
CrudRepository<T,ID>, PagingAndSortingRepository<T,ID>, Repository<T,ID>
All Known Implementing Classes:
SimpleElasticsearchRepository

@NoRepositoryBean public interface ElasticsearchRepository<T,ID> extends PagingAndSortingRepository<T,ID>, CrudRepository<T,ID>
Author:
Rizwan Idrees, Mohsin Husen, Sascha Woo, Murali Chevuri, Peter-Josef Meisch
  • Method Details

    • searchSimilar

      Page<T> searchSimilar(T entity, @Nullable String[] fields, Pageable pageable)
      Search for similar entities using a morelikethis query
      Parameters:
      entity - the entity for which similar documents should be searched, must not be null
      fields -
      pageable - , must not be null
      Returns:
    • save

      <S extends T> S save(S entity, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • saveAll

      <S extends T> Iterable<S> saveAll(Iterable<S> entities, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • deleteById

      void deleteById(ID id, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • delete

      void delete(T entity, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • deleteAllById

      void deleteAllById(Iterable<? extends ID> ids, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • deleteAll

      void deleteAll(Iterable<? extends T> entities, @Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2
    • deleteAll

      void deleteAll(@Nullable RefreshPolicy refreshPolicy)
      Since:
      5.2