fix(search): Fix the rollback unintentional rollback(#2028) of dataset index to search by field paths. (#2040)

Enables the auto complete of field paths on DataHub UI
This commit is contained in:
Nagarjuna Kanamarlapudi 2020-12-14 17:40:24 -08:00 committed by GitHub
parent eedf0ac1af
commit 0fef73bb57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 0 deletions

View File

@ -60,6 +60,28 @@
},
"normalizer": "my_normalizer"
},
"fieldPaths": {
"type": "keyword",
"fields": {
"field_pattern_ngram": {
"type": "text",
"analyzer": "field_pattern_ngram"
},
"delimited": {
"type": "text",
"analyzer": "delimit"
},
"ngram": {
"type": "text",
"analyzer": "custom_ngram"
},
"pattern": {
"type": "text",
"analyzer": "field_pattern"
}
},
"normalizer": "my_normalizer"
},
"num_downstream_datasets": {
"type": "long"
},

View File

@ -51,6 +51,13 @@
"type": "custom",
"tokenizer": "dataset_pattern"
},
"field_pattern": {
"filter": [
"lowercase"
],
"type": "custom",
"tokenizer": "field_pattern"
},
"comma_pattern": {
"filter": [
"lowercase"
@ -102,6 +109,14 @@
"type": "custom",
"tokenizer": "dataset_pattern"
},
"field_pattern_ngram": {
"filter": [
"lowercase",
"autocomplete_filter"
],
"type": "custom",
"tokenizer": "field_pattern"
},
"custom_browse_slash": {
"filter": [
"lowercase"
@ -132,6 +147,10 @@
"dataset_pattern": {
"pattern": "[./]",
"type": "pattern"
},
"field_pattern": {
"pattern": "[./]",
"type": "pattern"
}
}
}