public final class SearchResult extends Object
Constructor and Description |
---|
SearchResult(double score)
Constructor of
SearchResult . |
Modifier and Type | Method and Description |
---|---|
List<CaptionResult> |
getCaptions()
Get the captions property: Captions are the most representative passages from the document relatively to the
search query.
|
<T> T |
getDocument(Class<T> modelClass)
Get the additionalProperties property: Unmatched properties from the message are deserialized this collection.
|
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 |
getRerankerScore()
Get the rerankerScore property: The relevance score computed by the semantic ranker for the top search results.
|
double |
getScore()
Get the score property: The relevance score of the document compared to other documents returned by the query.
|
public SearchResult(double score)
SearchResult
.score
- The relevance score of the document compared to other documents returned by the query.public double getScore()
public Double getRerankerScore()
public Map<String,List<String>> getHighlights()
public List<CaptionResult> getCaptions()
public <T> T getDocument(Class<T> modelClass)
T
- Convert document to the generic type.modelClass
- The model class converts to.RuntimeException
- if there is IO error occurs.Copyright © 2021 Microsoft Corporation. All rights reserved.