T - ID - @NoRepositoryBean
public interface ElasticsearchRepository<T,ID>
extends org.springframework.data.repository.PagingAndSortingRepository<T,ID>
| Modifier and Type | Method and Description |
|---|---|
org.springframework.data.domain.Page<T> |
searchSimilar(T entity,
String[] fields,
org.springframework.data.domain.Pageable pageable)
Search for similar entities using a morelikethis query
|
org.springframework.data.domain.Page<T> searchSimilar(T entity, @Nullable String[] fields, org.springframework.data.domain.Pageable pageable)
entity - the entity for which similar documents should be searched, must not be nullfields - pageable - , must not be nullCopyright © 2011–2023 Pivotal Software, Inc.. All rights reserved.