Reference documentation and code samples for the Google Cloud Vector Search V1 Client class QueryEnhancement.
Query enhancement settings. When enabled, expands the search terms with stemming, synonyms, and spelling corrections, and removes stop words.
Generated from protobuf message google.cloud.vectorsearch.v1.QueryEnhancement
Namespace
Google \ Cloud \ VectorSearch \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ enabled |
bool
Optional. Whether query enhancement is enabled. |
↳ language_code |
string
Optional. The IETF BCP 47 language tag, such as "en-US", for query enhancement. If unset, the language is detected automatically. See https://en.wikipedia.org/wiki/IETF_language_tag. |
getEnabled
Optional. Whether query enhancement is enabled.
| Returns | |
|---|---|
| Type | Description |
bool |
|
setEnabled
Optional. Whether query enhancement is enabled.
| Parameter | |
|---|---|
| Name | Description |
var |
bool
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLanguageCode
Optional. The IETF BCP 47 language tag, such as "en-US", for query enhancement. If unset, the language is detected automatically. See https://en.wikipedia.org/wiki/IETF_language_tag.
| Returns | |
|---|---|
| Type | Description |
string |
|
setLanguageCode
Optional. The IETF BCP 47 language tag, such as "en-US", for query enhancement. If unset, the language is detected automatically. See https://en.wikipedia.org/wiki/IETF_language_tag.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|