Class SearchResponse.Builder
- Enclosing class:
SearchResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()True when one of the two search engines was unavailable and these results came from the surviving engine only (for example, keyword search fell back to semantic-only during an outage).degradedLegs(List<String> degradedLegs) degradedLegs(Optional<List<String>> degradedLegs) Which search engines were unavailable for this response:text(keyword) and/orvector(semantic).from(SearchResponse other) results(List<SearchResult> results) results(Optional<List<SearchResult>> results) The matched content chunks, ordered from most to least relevant.searchTimeMs(Long searchTimeMs) searchTimeMs(Optional<Long> searchTimeMs) How long the search took to run, in milliseconds.totalResults(Integer totalResults) totalResults(Optional<Integer> totalResults) The total number of items that matched the query (the size of the matching pool).
-
Method Details
-
from
-
results
The matched content chunks, ordered from most to least relevant.
-
results
-
totalResults
The total number of items that matched the query (the size of the matching pool). This may be larger than the number of results returned in this response, which is capped by
limit. -
totalResults
-
searchTimeMs
How long the search took to run, in milliseconds.
-
searchTimeMs
-
degraded
True when one of the two search engines was unavailable and these results came from the surviving engine only (for example, keyword search fell back to semantic-only during an outage). When true, the results may be less complete than a healthy hybrid search. Set
requireCompleteto true on your request to receive a 503 instead of partial results. -
degraded
-
degradedLegs
Which search engines were unavailable for this response:
text(keyword) and/orvector(semantic). Empty when the search was not degraded. -
degradedLegs
-
build
-
additionalProperty
-
additionalProperties
-