public final class AnswerResult extends Object
Constructor and Description |
---|
AnswerResult() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAdditionalProperties()
Get the additionalProperties property: An answer is a text passage extracted from the contents of the most
relevant documents that matched the query.
|
String |
getHighlights()
Get the highlights property: Same text passage as in the Text property with highlighted text phrases most
relevant to the query.
|
String |
getKey()
Get the key property: The key of the document the answer was extracted from.
|
Double |
getScore()
Get the score property: The score value represents how relevant the answer is to the the query relative to other
answers returned for the query.
|
String |
getText()
Get the text property: The text passage extracted from the document contents as the answer.
|
AnswerResult |
setAdditionalProperties(Map<String,Object> additionalProperties)
Set the additionalProperties property: An answer is a text passage extracted from the contents of the most
relevant documents that matched the query.
|
public Double getScore()
public String getKey()
public String getText()
public String getHighlights()
public Map<String,Object> getAdditionalProperties()
public AnswerResult setAdditionalProperties(Map<String,Object> additionalProperties)
additionalProperties
- the additionalProperties value to set.Copyright © 2021 Microsoft Corporation. All rights reserved.