Class SearchHitSupport
java.lang.Object
io.vanslog.spring.data.meilisearch.core.SearchHitSupport
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> SearchPage<T>searchPageFor(SearchHits<T> searchHits, Pageable pageable, long total) static ObjectunwrapSearchHits(Object result) unwraps the data contained in a SearchHit for different types containing SearchHits if possible
-
Method Details
-
unwrapSearchHits
unwraps the data contained in a SearchHit for different types containing SearchHits if possible- Parameters:
result- the object, list, page or whatever containing SearchHit objects- Returns:
- a corresponding object where the SearchHits are replaced by their content if possible, otherwise the original object
-
searchPageFor
public static <T> SearchPage<T> searchPageFor(SearchHits<T> searchHits, @Nullable Pageable pageable, long total)
-