Reference documentation and code samples for the Cloud Firestore V1 Client class SearchIndexOptions.
Options for search indexes at the definition level.
Generated from protobuf message google.firestore.admin.v1.Index.SearchIndexOptions
Namespace
Google \ Cloud \ Firestore \ Admin \ V1 \ IndexMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ text_language |
string
Optional. The language to use for text search indexes. Used as the default language if not overridden at the document level by specifying the |
↳ text_language_override_field_path |
string
Optional. The field in the document that specifies which language to use for that specific document. For indexes with MONGODB_COMPATIBLE_API ApiScope: if unspecified, the language is taken from the "language" field if it exists or from |
getTextLanguage
Optional. The language to use for text search indexes. Used as the
default language if not overridden at the document level by specifying
the text_language_override_field. The language is specified as a BCP 47
language code.
For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the
default language is English.
For indexes with ANY_API ApiScope: If unspecified, the default behavior
is autodetect.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTextLanguage
Optional. The language to use for text search indexes. Used as the
default language if not overridden at the document level by specifying
the text_language_override_field. The language is specified as a BCP 47
language code.
For indexes with MONGODB_COMPATIBLE_API ApiScope: If unspecified, the
default language is English.
For indexes with ANY_API ApiScope: If unspecified, the default behavior
is autodetect.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTextLanguageOverrideFieldPath
Optional. The field in the document that specifies which language to use
for that specific document. For indexes with MONGODB_COMPATIBLE_API
ApiScope: if unspecified, the language is taken from the "language" field
if it exists or from text_language if it does not.
| Returns | |
|---|---|
| Type | Description |
string |
|
setTextLanguageOverrideFieldPath
Optional. The field in the document that specifies which language to use
for that specific document. For indexes with MONGODB_COMPATIBLE_API
ApiScope: if unspecified, the language is taken from the "language" field
if it exists or from text_language if it does not.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|