SearchResult Class
- java.
lang. Object - com.
azure. search. documents. models. SearchResult
- com.
public final class SearchResult
Contains a document found by a search query, plus associated metadata.
Constructor Summary
Constructor | Description |
---|---|
SearchResult(double score) |
Constructor of SearchResult. |
Method Summary
Modifier and Type | Method and Description |
---|---|
T |
getDocument(Class<T> modelClass)
Get the additional |
Map<String,List<String>> |
getHighlights()
Get the highlights property: Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query. |
double |
getScore()
Get the score property: The relevance score of the document compared to other documents returned by the query. |
Semantic |
getSemanticSearch()
Get the semantic |
Methods inherited from java.lang.Object
Constructor Details
SearchResult
public SearchResult(double score)
Constructor of SearchResult.
Parameters:
Method Details
getDocument
public T
Get the additionalProperties property: Unmatched properties from the message are deserialized this collection.
Parameters:
Returns:
getHighlights
public Map<>
Get the highlights property: Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query.
Returns:
getScore
public double getScore()
Get the score property: The relevance score of the document compared to other documents returned by the query.
Returns:
getSemanticSearch
public SemanticSearchResult getSemanticSearch()
Get the semanticSearchResult property: The semantic search results based on the search request.
If semantic search wasn't requested this will return a SemanticSearchResult with no values.
Returns:
Applies to
Azure SDK for Java
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기