Interface MeilisearchRepository<T,ID>

Type Parameters:
T - The type of the domain class
ID - 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 Details

    • findAllById

      Iterable<T> findAllById(Iterable<ID> ids)
      Retrieves documents by ID using native ID-list fetch, available from Meilisearch 1.14.
      Specified by:
      findAllById in interface CrudRepository<T,ID>
      Parameters:
      ids - the document IDs to retrieve
      Returns:
      documents found for the requested IDs
    • findAll

      Iterable<T> findAll(Sort sort)
      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:
      findAll in interface PagingAndSortingRepository<T,ID>
      Parameters:
      sort - the sort order; attributes must be sortable in the index settings
      Returns:
      the documents in the requested order when sorted