Interface MeilisearchRepository<T,ID>
- Type Parameters:
T- The type of the domain classID- The type of the id field
- All Superinterfaces:
CrudRepository<T,,ID> PagingAndSortingRepository<T,,ID> Repository<T,ID>
- All Known Implementing Classes:
SimpleMeilisearchRepository
@NoRepositoryBean
public interface MeilisearchRepository<T,ID>
extends CrudRepository<T,ID>, PagingAndSortingRepository<T,ID>
Repository interface for Meilisearch.
- Author:
- Junghoon Ban
- See Also:
-
Method Summary
Methods inherited from interface org.springframework.data.repository.CrudRepository
count, delete, deleteAll, deleteAll, deleteAllById, deleteById, existsById, findAll, findById, save, saveAllMethods inherited from interface org.springframework.data.repository.PagingAndSortingRepository
findAll
-
Method Details
-
findAllById
Retrieves documents by ID using native ID-list fetch, available from Meilisearch 1.14.- Specified by:
findAllByIdin interfaceCrudRepository<T,ID> - Parameters:
ids- the document IDs to retrieve- Returns:
- documents found for the requested IDs
-
findAll
Retrieves documents in the requested order. Sorted listing first counts the documents, then fetches up to that count; concurrent additions can leave the result short of the current total. Sorting requires Meilisearch 1.16 or later.- Specified by:
findAllin interfacePagingAndSortingRepository<T,ID> - Parameters:
sort- the sort order; attributes must be sortable in the index settings- Returns:
- the documents in the requested order when sorted
-