Interface SearchResults<T>
- Type Parameters:
T- The entity type
- All Superinterfaces:
Iterable<SearchResult<T>>
Iterable wrapper of vector search results with entity and score.
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault Iterator<SearchResult<T>> iterator()Returns an iterator over the matched search results.static <T> SearchResults<T> of(List<SearchResult<T>> results) Creates an immutable results wrapper.results()Methods inherited from interface Iterable
forEach, spliterator
-
Method Details
-
results
List<SearchResult<T>> results()- Returns:
- The matched results with scores
-
of
Creates an immutable results wrapper.- Type Parameters:
T- The entity type- Parameters:
results- The matched results- Returns:
- Search results wrapper
-
iterator
-