Fix Japanese language indexing (#11903)

This commit is contained in:
Sriharsha Chintalapani 2023-06-06 22:22:55 -07:00 committed by GitHub
parent f23f67dfe9
commit 4ecbbcd43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 28 additions and 4 deletions

View File

@ -165,10 +165,15 @@
}, },
"displayName": { "displayName": {
"type": "text", "type": "text",
"analyzer": "om_analyzer_jp",
"fields": { "fields": {
"keyword": { "keyword": {
"type": "keyword", "type": "keyword",
"ignore_above": 256 "ignore_above": 256
},
"ngram": {
"type": "text",
"analyzer": "om_ngram"
} }
} }
}, },

View File

@ -155,7 +155,14 @@
"type": "text" "type": "text"
}, },
"description": { "description": {
"type": "text" "type": "text",
"analyzer": "om_analyzer_jp",
"fields": {
"ngram": {
"type": "text",
"analyzer": "om_ngram"
}
}
}, },
"deleted": { "deleted": {
"type": "text" "type": "text"

View File

@ -222,11 +222,16 @@
} }
}, },
"displayName": { "displayName": {
"type": "keyword", "type": "text",
"analyzer": "om_analyzer_jp",
"fields": { "fields": {
"keyword": { "keyword": {
"type": "keyword", "type": "keyword",
"ignore_above": 256 "ignore_above": 256
},
"ngram": {
"type": "text",
"analyzer": "om_ngram"
} }
} }
}, },
@ -234,7 +239,14 @@
"type": "text" "type": "text"
}, },
"description": { "description": {
"type": "text" "type": "text",
"analyzer": "om_analyzer_jp",
"fields": {
"ngram": {
"type": "text",
"analyzer": "om_ngram"
}
}
}, },
"deleted": { "deleted": {
"type": "text" "type": "text"

View File

@ -68,7 +68,7 @@
"type": "text" "type": "text"
}, },
"displayName": { "displayName": {
"type": "keyword", "type": "text",
"analyzer": "om_analyzer", "analyzer": "om_analyzer",
"fields": { "fields": {
"keyword": { "keyword": {