Class WebKnowledgeSourceParams
java.lang.Object
com.azure.search.documents.knowledgebases.models.KnowledgeSourceParams
com.azure.search.documents.knowledgebases.models.WebKnowledgeSourceParams
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KnowledgeSourceParams>
Specifies runtime parameters for a web knowledge source.
-
Constructor Summary
ConstructorsConstructorDescriptionWebKnowledgeSourceParams(String knowledgeSourceName) Creates an instance of WebKnowledgeSourceParams class. -
Method Summary
Modifier and TypeMethodDescriptionstatic WebKnowledgeSourceParamsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WebKnowledgeSourceParams from the JsonReader.getCount()Get the count property: The number of web results to return.Get the freshness property: The freshness of web results.getKind()Get the kind property: The type of the knowledge source.Get the language property: The language of the web results.Get the market property: The market of the web results.setAlwaysQuerySource(Boolean alwaysQuerySource) Set the alwaysQuerySource property: Indicates that this knowledge source should bypass source selection and always be queried at retrieval time.Set the count property: The number of web results to return.setFreshness(String freshness) Set the freshness property: The freshness of web results.setIncludeReferences(Boolean includeReferences) Set the includeReferences property: Indicates whether references should be included for data retrieved from this source.setIncludeReferenceSourceData(Boolean includeReferenceSourceData) Set the includeReferenceSourceData property: Indicates whether references should include the structured data obtained during retrieval in their payload.setLanguage(String language) Set the language property: The language of the web results.Set the market property: The market of the web results.setRerankerThreshold(Float rerankerThreshold) Set the rerankerThreshold property: The reranker threshold all retrieved documents must meet to be included in the response.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class KnowledgeSourceParams
getKnowledgeSourceName, getRerankerThreshold, isAlwaysQuerySource, isIncludeReferences, isIncludeReferenceSourceDataMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WebKnowledgeSourceParams
Creates an instance of WebKnowledgeSourceParams class.- Parameters:
knowledgeSourceName- the knowledgeSourceName value to set.
-
-
Method Details
-
getKind
Get the kind property: The type of the knowledge source.- Overrides:
getKindin classKnowledgeSourceParams- Returns:
- the kind value.
-
getLanguage
Get the language property: The language of the web results.- Returns:
- the language value.
-
setLanguage
Set the language property: The language of the web results.- Parameters:
language- the language value to set.- Returns:
- the WebKnowledgeSourceParams object itself.
-
getMarket
Get the market property: The market of the web results.- Returns:
- the market value.
-
setMarket
Set the market property: The market of the web results.- Parameters:
market- the market value to set.- Returns:
- the WebKnowledgeSourceParams object itself.
-
getCount
Get the count property: The number of web results to return.- Returns:
- the count value.
-
setCount
Set the count property: The number of web results to return.- Parameters:
count- the count value to set.- Returns:
- the WebKnowledgeSourceParams object itself.
-
getFreshness
Get the freshness property: The freshness of web results.- Returns:
- the freshness value.
-
setFreshness
Set the freshness property: The freshness of web results.- Parameters:
freshness- the freshness value to set.- Returns:
- the WebKnowledgeSourceParams object itself.
-
setIncludeReferences
Set the includeReferences property: Indicates whether references should be included for data retrieved from this source.- Overrides:
setIncludeReferencesin classKnowledgeSourceParams- Parameters:
includeReferences- the includeReferences value to set.- Returns:
- the KnowledgeSourceParams object itself.
-
setIncludeReferenceSourceData
Set the includeReferenceSourceData property: Indicates whether references should include the structured data obtained during retrieval in their payload.- Overrides:
setIncludeReferenceSourceDatain classKnowledgeSourceParams- Parameters:
includeReferenceSourceData- the includeReferenceSourceData value to set.- Returns:
- the KnowledgeSourceParams object itself.
-
setAlwaysQuerySource
Set the alwaysQuerySource property: Indicates that this knowledge source should bypass source selection and always be queried at retrieval time.- Overrides:
setAlwaysQuerySourcein classKnowledgeSourceParams- Parameters:
alwaysQuerySource- the alwaysQuerySource value to set.- Returns:
- the KnowledgeSourceParams object itself.
-
setRerankerThreshold
Set the rerankerThreshold property: The reranker threshold all retrieved documents must meet to be included in the response.- Overrides:
setRerankerThresholdin classKnowledgeSourceParams- Parameters:
rerankerThreshold- the rerankerThreshold value to set.- Returns:
- the KnowledgeSourceParams object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KnowledgeSourceParams>- Overrides:
toJsonin classKnowledgeSourceParams- Throws:
IOException
-
fromJson
public static WebKnowledgeSourceParams fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of WebKnowledgeSourceParams from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of WebKnowledgeSourceParams if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the WebKnowledgeSourceParams.
-