更新架构错误 Api - Google 云搜索
Error with Update schema Api - Google cloud search
我目前正在使用 Google 云搜索 REST Api,当我尝试更新我的架构时出现以下错误。有人可以解释为什么吗?
{
"error": {
"code": 400,
"message": "Disallowed schema change for previously deleted property: Cannot change is_repeated from true to false. Disallowed schema change for previously deleted property: Cannot change the retrieval importance of a text property.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "google.apps.search.v1.film.titolo",
"description": "Disallowed schema change for previously deleted property: Cannot change is_repeated from true to false."
},
{
"field": "google.apps.search.v1.film.titolo",
"description": "Disallowed schema change for previously deleted property: Cannot change the retrieval importance of a text property."
}
]
}
]
}
}
正如此处文档中所说:https://developers.google.com/cloud-search/docs/guides/schema-guide、
"In situations where you must make an otherwise disallowed change to
your schema, you can often make a series of allowed changes that
achieve the same effect. In general, this involves first migrating
indexed properties from an older object definition to a newer one and
then sending an indexing request that uses only the newer property."
我目前正在使用 Google 云搜索 REST Api,当我尝试更新我的架构时出现以下错误。有人可以解释为什么吗?
{
"error": {
"code": 400,
"message": "Disallowed schema change for previously deleted property: Cannot change is_repeated from true to false. Disallowed schema change for previously deleted property: Cannot change the retrieval importance of a text property.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.BadRequest",
"fieldViolations": [
{
"field": "google.apps.search.v1.film.titolo",
"description": "Disallowed schema change for previously deleted property: Cannot change is_repeated from true to false."
},
{
"field": "google.apps.search.v1.film.titolo",
"description": "Disallowed schema change for previously deleted property: Cannot change the retrieval importance of a text property."
}
]
}
]
}
}
正如此处文档中所说:https://developers.google.com/cloud-search/docs/guides/schema-guide、
"In situations where you must make an otherwise disallowed change to your schema, you can often make a series of allowed changes that achieve the same effect. In general, this involves first migrating indexed properties from an older object definition to a newer one and then sending an indexing request that uses only the newer property."