T
- ID
- @NoRepositoryBean public interface ElasticsearchRepository<T,ID> extends PagingAndSortingRepository<T,ID>
Modifier and Type | Method and Description |
---|---|
default <S extends T> |
index(S entity)
Deprecated.
since 4.0, use
CrudRepository.save(Object) instead |
<S extends T> |
indexWithoutRefresh(S entity)
Deprecated.
since 4.0, use a custom repository implementation instead
|
void |
refresh()
Deprecated.
since 4.0, use
IndexOperations#refresh(Class) instead. Repository methods should call refresh
in their implementation. |
Page<T> |
search(Query searchQuery)
Deprecated.
since 4.0, use standard repository method naming or @
Query annotated methods, or
ElasticsearchOperations . |
Iterable<T> |
search(org.elasticsearch.index.query.QueryBuilder query)
Deprecated.
since 4.0, use standard repository method naming or @
Query annotated methods, or
ElasticsearchOperations . |
Page<T> |
search(org.elasticsearch.index.query.QueryBuilder query,
Pageable pageable)
Deprecated.
since 4.0, use standard repository method naming or @
Query annotated methods, or
ElasticsearchOperations . |
Page<T> |
searchSimilar(T entity,
String[] fields,
Pageable pageable)
Search for similar entities using a morelikethis query
|
findAll, findAll
count, delete, deleteAll, deleteAll, deleteById, existsById, findAll, findAllById, findById, save, saveAll
@Deprecated default <S extends T> S index(S entity)
CrudRepository.save(Object)
instead@Deprecated <S extends T> S indexWithoutRefresh(S entity)
CrudRepository.saveAll(Iterable)
. This might lead to a temporary inconsistent state until refresh()
is
called.Iterable<T> search(org.elasticsearch.index.query.QueryBuilder query)
Query
annotated methods, or
ElasticsearchOperations
.Page<T> search(org.elasticsearch.index.query.QueryBuilder query, Pageable pageable)
Query
annotated methods, or
ElasticsearchOperations
.Page<T> search(Query searchQuery)
Query
annotated methods, or
ElasticsearchOperations
.Page<T> searchSimilar(T entity, @Nullable String[] fields, Pageable pageable)
entity
- the entity for which similar documents should be searched, must not be nullfields
- pageable
- , must not be null@Deprecated void refresh()
IndexOperations#refresh(Class)
instead. Repository methods should call refresh
in their implementation.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.