Class SearchHitSupport

java.lang.Object
io.vanslog.spring.data.meilisearch.core.SearchHitSupport

public class SearchHitSupport extends Object
  • Method Details

    • unwrapSearchHits

      public static Object unwrapSearchHits(Object result)
      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)