SearchResult Class
- java.
lang. Object - com.
azure. search. documents. models. SearchResult
- com.
Implements
public final class SearchResult
implements JsonSerializable<SearchResult>
Contains a document found by a search query, plus associated metadata.
Constructor Summary
| Constructor | Description |
|---|---|
| SearchResult() |
Creates an instance of Search |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Search |
fromJson(JsonReader jsonReader)
Reads an instance of Search |
| Map<String,Object> |
getAdditionalProperties()
Get the additional |
|
List<Query |
getCaptions()
Get the captions property: Captions are the most representative passages from the document relatively to the search query. |
|
Document |
getDocumentDebugInfo()
Get the document |
| 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 |
getRerankerBoostedScore()
Get the reranker |
| Double |
getRerankerScore()
Get the reranker |
| double |
getScore()
Get the score property: The relevance score of the document compared to other documents returned by the query. |
|
Search |
setAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
SearchResult
public SearchResult()
Creates an instance of SearchResult class.
Method Details
fromJson
public static SearchResult fromJson(JsonReader jsonReader)
Reads an instance of SearchResult from the JsonReader.
Parameters:
Returns:
Throws:
getAdditionalProperties
public Map<String,Object> getAdditionalProperties()
Get the additionalProperties property: Contains a document found by a search query, plus associated metadata.
Returns:
getCaptions
public List<QueryCaptionResult> getCaptions()
Get the captions property: Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'.
Returns:
getDocumentDebugInfo
public DocumentDebugInfo getDocumentDebugInfo()
Get the documentDebugInfo property: Contains debugging information that can be used to further explore your search results.
Returns:
getHighlights
public 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.
Returns:
getRerankerBoostedScore
public Double getRerankerBoostedScore()
Get the rerankerBoostedScore property: The relevance score computed by boosting the Reranker Score. Search results are sorted by the RerankerScore/RerankerBoostedScore based on useScoringProfileBoostedRanking in the Semantic Config. RerankerBoostedScore is only returned for queries of type 'semantic'.
Returns:
getRerankerScore
public Double getRerankerScore()
Get the rerankerScore property: The relevance score computed by the semantic ranker for the top search results. Search results are sorted by the RerankerScore first and then by the Score. RerankerScore is only returned for queries of type 'semantic'.
Returns:
getScore
public double getScore()
Get the score property: The relevance score of the document compared to other documents returned by the query.
Returns:
setAdditionalProperties
public SearchResult setAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: Contains a document found by a search query, plus associated metadata.
Parameters:
Returns: