HybridSearch Class
- java.
lang. Object - com.
azure. search. documents. models. HybridSearch
- com.
Implements
public final class HybridSearch
implements JsonSerializable<HybridSearch>
The query parameters to configure hybrid search behaviors.
Constructor Summary
| Constructor | Description |
|---|---|
| HybridSearch() |
Creates an instance of Hybrid |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Hybrid |
fromJson(JsonReader jsonReader)
Reads an instance of Hybrid |
|
Hybrid |
getCountAndFacetMode()
Get the count |
| Integer |
getMaxTextRecallSize()
Get the max |
|
Hybrid |
setCountAndFacetMode(HybridCountAndFacetMode countAndFacetMode)
Set the count |
|
Hybrid |
setMaxTextRecallSize(Integer maxTextRecallSize)
Set the max |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
HybridSearch
public HybridSearch()
Creates an instance of HybridSearch class.
Method Details
fromJson
public static HybridSearch fromJson(JsonReader jsonReader)
Reads an instance of HybridSearch from the JsonReader.
Parameters:
Returns:
Throws:
getCountAndFacetMode
public HybridCountAndFacetMode getCountAndFacetMode()
Get the countAndFacetMode property: Determines whether the count and facets should includes all documents that matched the search query, or only the documents that are retrieved within the 'maxTextRecallSize' window.
Returns:
getMaxTextRecallSize
public Integer getMaxTextRecallSize()
Get the maxTextRecallSize property: Determines the maximum number of documents to be retrieved by the text query portion of a hybrid search request. Those documents will be combined with the documents matching the vector queries to produce a single final list of results. Choosing a larger maxTextRecallSize value will allow retrieving and paging through more documents (using the top and skip parameters), at the cost of higher resource utilization and higher latency. The value needs to be between 1 and 10,000. Default is 1000.
Returns:
setCountAndFacetMode
public HybridSearch setCountAndFacetMode(HybridCountAndFacetMode countAndFacetMode)
Set the countAndFacetMode property: Determines whether the count and facets should includes all documents that matched the search query, or only the documents that are retrieved within the 'maxTextRecallSize' window.
Parameters:
Returns:
setMaxTextRecallSize
public HybridSearch setMaxTextRecallSize(Integer maxTextRecallSize)
Set the maxTextRecallSize property: Determines the maximum number of documents to be retrieved by the text query portion of a hybrid search request. Those documents will be combined with the documents matching the vector queries to produce a single final list of results. Choosing a larger maxTextRecallSize value will allow retrieving and paging through more documents (using the top and skip parameters), at the cost of higher resource utilization and higher latency. The value needs to be between 1 and 10,000. Default is 1000.
Parameters:
Returns: