From 5bf2cae27d9a4118ce2b9d6c0e491dbd8ba1e6cb Mon Sep 17 00:00:00 2001 From: Sriharsha Chintalapani Date: Mon, 15 Jan 2024 11:53:28 -0800 Subject: [PATCH] Minor: Remove ngram from the indexes --- .../search/indexes/ContainerIndex.java | 5 +--- .../indexes/DashboardDataModelIndex.java | 4 +-- .../search/indexes/DataProductIndex.java | 3 +- .../search/indexes/GlossaryTermIndex.java | 1 - .../service/search/indexes/MlModelIndex.java | 3 +- .../service/search/indexes/PipelineIndex.java | 3 +- .../search/indexes/SearchEntityIndex.java | 3 +- .../service/search/indexes/SearchIndex.java | 4 --- .../service/search/indexes/TableIndex.java | 1 - .../service/search/indexes/TagIndex.java | 4 +-- .../service/search/indexes/TopicIndex.java | 1 - .../service/search/indexes/UserIndex.java | 4 +-- .../elasticsearch/en/chart_index_mapping.json | 17 +---------- .../en/classification_index_mapping.json | 16 ----------- .../en/container_index_mapping.json | 24 +--------------- .../dashboard_data_model_index_mapping.json | 16 ----------- .../en/dashboard_index_mapping.json | 16 ----------- .../en/dashboard_service_index_mapping.json | 8 ------ .../en/data_products_index_mapping.json | 16 ----------- .../en/database_index_mapping.json | 16 ----------- .../en/database_schema_index_mapping.json | 16 ----------- .../en/database_service_index_mapping.json | 16 ----------- .../en/domain_index_mapping.json | 16 ----------- .../en/glossary_index_mapping.json | 16 ----------- .../en/glossary_term_index_mapping.json | 28 ------------------- .../en/messaging_service_index_mapping.json | 12 -------- .../en/metadata_service_index_mapping.json | 16 ----------- .../en/mlmodel_index_mapping.json | 16 ----------- .../en/mlmodel_service_index_mapping.json | 16 ----------- .../en/pipeline_index_mapping.json | 12 -------- .../en/pipeline_service_index_mapping.json | 8 ------ .../elasticsearch/en/query_index_mapping.json | 16 +---------- .../en/search_entity_index_mapping.json | 20 ------------- .../en/search_service_index_mapping.json | 12 -------- .../en/storage_service_index_mapping.json | 8 ------ .../en/stored_procedure_index_mapping.json | 16 ----------- .../elasticsearch/en/table_index_mapping.json | 12 -------- .../elasticsearch/en/tag_index_mapping.json | 8 ------ .../elasticsearch/en/team_index_mapping.json | 8 ------ .../en/test_case_index_mapping.json | 8 ------ ..._case_resolution_status_index_mapping.json | 8 ------ .../en/test_suite_index_mapping.json | 12 -------- .../elasticsearch/en/topic_index_mapping.json | 24 +--------------- .../elasticsearch/en/user_index_mapping.json | 12 -------- 44 files changed, 12 insertions(+), 489 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/ContainerIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/ContainerIndex.java index 88b2e798e8f4..157bd33d0041 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/ContainerIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/ContainerIndex.java @@ -7,7 +7,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.data.Container; import org.openmetadata.schema.type.TagLabel; import org.openmetadata.service.Entity; @@ -68,7 +67,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( container.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("owner", getEntityWithDisplayName(container.getOwner())); doc.put("service", getEntityWithDisplayName(container.getService())); doc.put("domain", getEntityWithDisplayName(container.getDomain())); @@ -79,9 +78,7 @@ public static Map getFields() { Map fields = SearchIndex.getDefaultFields(); fields.put("dataModel.columns.name", 2.0f); fields.put(DATA_MODEL_COLUMNS_NAME_KEYWORD, 10.0f); - fields.put("dataModel.columns.name.ngram", 1.0f); fields.put("dataModel.columns.displayName", 2.0f); - fields.put("dataModel.columns.displayName.ngram", 1.0f); fields.put("dataModel.columns.description", 1.0f); fields.put("dataModel.columns.children.name", 2.0f); return fields; diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DashboardDataModelIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DashboardDataModelIndex.java index 6f48ed2d6175..6798b1435333 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DashboardDataModelIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DashboardDataModelIndex.java @@ -7,7 +7,6 @@ import java.util.List; import java.util.Map; import java.util.Set; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.data.DashboardDataModel; import org.openmetadata.schema.type.TagLabel; import org.openmetadata.service.Entity; @@ -62,7 +61,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( dashboardDataModel.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("tier", parseTags.getTierTag()); doc.put("owner", getEntityWithDisplayName(dashboardDataModel.getOwner())); doc.put("service", getEntityWithDisplayName(dashboardDataModel.getService())); @@ -75,7 +74,6 @@ public static Map getFields() { Map fields = SearchIndex.getDefaultFields(); fields.put(COLUMNS_NAME_KEYWORD, 10.0f); fields.put("columns.name", 2.0f); - fields.put("columns.name.ngram", 1.0f); fields.put("columns.displayName", 1.0f); fields.put("columns.description", 1.0f); fields.put("columns.children.name", 2.0f); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DataProductIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DataProductIndex.java index f1a8e79a8b7f..044e7aeeab72 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DataProductIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/DataProductIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.domains.DataProduct; import org.openmetadata.service.Entity; import org.openmetadata.service.search.SearchIndexUtils; @@ -24,7 +23,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( dataProduct.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("entityType", Entity.DATA_PRODUCT); doc.put("owner", getEntityWithDisplayName(dataProduct.getOwner())); doc.put("domain", getEntityWithDisplayName(dataProduct.getDomain())); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/GlossaryTermIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/GlossaryTermIndex.java index d39d1deb0380..5ff7a7bf0ef0 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/GlossaryTermIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/GlossaryTermIndex.java @@ -43,7 +43,6 @@ public static Map getFields() { fields.put("synonyms.ngram", 1.0f); fields.put("glossary.name", 5.0f); fields.put("glossary.displayName", 5.0f); - fields.put("glossary.displayName.ngram", 1.0f); return fields; } } diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/MlModelIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/MlModelIndex.java index 80a00f3a55c5..07f15f5c5be8 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/MlModelIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/MlModelIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.data.MlModel; import org.openmetadata.service.Entity; import org.openmetadata.service.search.ParseTags; @@ -41,7 +40,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( mlModel.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("owner", getEntityWithDisplayName(mlModel.getOwner())); doc.put("service", getEntityWithDisplayName(mlModel.getService())); doc.put("domain", getEntityWithDisplayName(mlModel.getDomain())); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/PipelineIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/PipelineIndex.java index 3bd7712b459d..31a783c99e7f 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/PipelineIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/PipelineIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.data.Pipeline; import org.openmetadata.schema.type.Task; import org.openmetadata.service.Entity; @@ -53,7 +52,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( pipeline.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("owner", getEntityWithDisplayName(pipeline.getOwner())); doc.put("service", getEntityWithDisplayName(pipeline.getService())); doc.put("domain", getEntityWithDisplayName(pipeline.getDomain())); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchEntityIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchEntityIndex.java index fb6e7a0e09f5..c00f1d6d0368 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchEntityIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchEntityIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.service.Entity; import org.openmetadata.service.search.ParseTags; import org.openmetadata.service.search.SearchIndexUtils; @@ -27,7 +26,7 @@ public Map buildESDoc() { "fqnParts", getFQNParts( searchIndex.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + suggest.stream().map(SearchSuggest::getInput).toList())); ParseTags parseTags = new ParseTags(Entity.getEntityTags(Entity.SEARCH_INDEX, searchIndex)); doc.put("tags", parseTags.getTags()); doc.put("tier", parseTags.getTierTag()); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchIndex.java index 8f0f898bb17d..de918d99beb8 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/SearchIndex.java @@ -4,8 +4,6 @@ import static org.openmetadata.service.Entity.FIELD_DISPLAY_NAME; import static org.openmetadata.service.Entity.FIELD_NAME; import static org.openmetadata.service.search.EntityBuilderConstant.DISPLAY_NAME_KEYWORD; -import static org.openmetadata.service.search.EntityBuilderConstant.FIELD_DISPLAY_NAME_NGRAM; -import static org.openmetadata.service.search.EntityBuilderConstant.FIELD_NAME_NGRAM; import static org.openmetadata.service.search.EntityBuilderConstant.FULLY_QUALIFIED_NAME; import static org.openmetadata.service.search.EntityBuilderConstant.FULLY_QUALIFIED_NAME_PARTS; import static org.openmetadata.service.search.EntityBuilderConstant.NAME_KEYWORD; @@ -135,9 +133,7 @@ static void getLineageDataDirection( static Map getDefaultFields() { Map fields = new HashMap<>(); fields.put(FIELD_DISPLAY_NAME, 15.0f); - fields.put(FIELD_DISPLAY_NAME_NGRAM, 1.0f); fields.put(FIELD_NAME, 15.0f); - fields.put(FIELD_NAME_NGRAM, 1.0f); fields.put(DISPLAY_NAME_KEYWORD, 25.0f); fields.put(NAME_KEYWORD, 25.0f); fields.put(FIELD_DESCRIPTION, 1.0f); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TableIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TableIndex.java index d6cae6b3fae0..fda5849a8d40 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TableIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TableIndex.java @@ -112,7 +112,6 @@ public static Map getFields() { Map fields = SearchIndex.getDefaultFields(); fields.put(COLUMNS_NAME_KEYWORD, 10.0f); fields.put("columns.name", 2.0f); - fields.put("columns.name.ngram", 1.0f); fields.put("columns.displayName", 1.0f); fields.put("columns.description", 1.0f); fields.put("columns.children.name", 2.0f); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TagIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TagIndex.java index f9fe0f6cfacf..28822e8f3a54 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TagIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TagIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.schema.entity.classification.Tag; import org.openmetadata.service.Entity; import org.openmetadata.service.search.SearchIndexUtils; @@ -22,8 +21,7 @@ public Map buildESDoc() { doc.put( "fqnParts", getFQNParts( - tag.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + tag.getFullyQualifiedName(), suggest.stream().map(SearchSuggest::getInput).toList())); if (tag.getDisabled() != null && tag.getDisabled()) { doc.put("disabled", tag.getDisabled()); } else { diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TopicIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TopicIndex.java index f448d57571b2..c2347958af1a 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TopicIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/TopicIndex.java @@ -119,7 +119,6 @@ public static Map getFields() { Map fields = SearchIndex.getDefaultFields(); fields.put(ES_MESSAGE_SCHEMA_FIELD, 2.0f); fields.put("messageSchema.schemaFields.name.keyword", 2.0f); - fields.put("messageSchema.schemaFields.name.ngram", 1.0f); fields.put("messageSchema.schemaFields.description", 1.0f); fields.put("messageSchema.schemaFields.children.name", 2.0f); fields.put("messageSchema.schemaFields.children.keyword", 2.0f); diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/UserIndex.java b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/UserIndex.java index a06c809f825a..88d505982df6 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/UserIndex.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/search/indexes/UserIndex.java @@ -3,7 +3,6 @@ import java.util.ArrayList; import java.util.List; import java.util.Map; -import java.util.stream.Collectors; import org.openmetadata.common.utils.CommonUtil; import org.openmetadata.schema.entity.teams.User; import org.openmetadata.service.Entity; @@ -29,8 +28,7 @@ public Map buildESDoc() { doc.put( "fqnParts", getFQNParts( - user.getFullyQualifiedName(), - suggest.stream().map(SearchSuggest::getInput).collect(Collectors.toList()))); + user.getFullyQualifiedName(), suggest.stream().map(SearchSuggest::getInput).toList())); doc.put("suggest", suggest); doc.put("entityType", Entity.USER); doc.put( diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/chart_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/chart_index_mapping.json index cefe36511b1c..95e2fea02e9b 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/chart_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/chart_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -59,10 +47,7 @@ "type": "text", "analyzer": "om_analyzer", "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - }, + "fields": { "keyword": { "type": "keyword", "ignore_above": 256 diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/classification_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/classification_index_mapping.json index d95fe1f20fb5..3f68f4082654 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/classification_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/classification_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/container_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/container_index_mapping.json index 5677fa6983bc..704dda580c96 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/container_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/container_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -64,13 +52,7 @@ }, "displayName": { "type": "text", - "analyzer": "om_analyzer", - "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - } - } + "analyzer": "om_analyzer" }, "description": { "type": "text", @@ -149,10 +131,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_data_model_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_data_model_index_mapping.json index 3d6dd74b5fd5..4bc75af8457d 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_data_model_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_data_model_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -59,10 +47,6 @@ "type": "text", "analyzer": "om_analyzer", "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - }, "keyword": { "type": "keyword", "ignore_above": 256 diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_index_mapping.json index 8faa1298175d..f2878d4835d8 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -66,10 +54,6 @@ "type": "text", "analyzer": "om_analyzer", "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - }, "keyword": { "type": "keyword", "ignore_above": 256 diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_service_index_mapping.json index 19fd7c838262..ddf2de5f1660 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/dashboard_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/data_products_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/data_products_index_mapping.json index 2dce215adbe6..d09a1c9927f2 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/data_products_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/data_products_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/database_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/database_index_mapping.json index 03e44f357a98..d9d9083da8d1 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/database_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/database_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/database_schema_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/database_schema_index_mapping.json index 7b9c8743ca6d..591a0e520efc 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/database_schema_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/database_schema_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/database_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/database_service_index_mapping.json index 4e317ea1f0a5..ac860cb2ef20 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/database_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/database_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/domain_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/domain_index_mapping.json index 3a18c8c12418..37fc12645247 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/domain_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/domain_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -51,10 +43,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -72,10 +60,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/glossary_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/glossary_index_mapping.json index 5461e7665cc1..af29edd4353f 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/glossary_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/glossary_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 1, - "max_gram": 3, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -116,10 +104,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/glossary_term_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/glossary_term_index_mapping.json index 81ddfdfb8dad..72ce69bc0a5a 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/glossary_term_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/glossary_term_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 1, - "max_gram": 3, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -116,10 +104,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -195,10 +179,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -223,10 +203,6 @@ "type": "keyword", "normalizer": "lowercase_normalizer", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -237,10 +213,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/messaging_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/messaging_service_index_mapping.json index e261b9cfac93..28ecd4b59233 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/messaging_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/messaging_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/metadata_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/metadata_service_index_mapping.json index 3506fe5c300f..d7efe9a58319 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/metadata_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/metadata_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -66,10 +54,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_index_mapping.json index 0f37b2880f0b..256d33438871 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_service_index_mapping.json index ba35d7cfa80f..3b4f5048b07a 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/mlmodel_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -72,10 +60,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_index_mapping.json index 79cf5d1b20a3..32e54d5d21d7 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -61,10 +53,6 @@ "type": "text", "analyzer": "om_analyzer", "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - }, "keyword": { "type": "keyword", "ignore_above": 256 diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_service_index_mapping.json index d52aefe5cc9c..b5d2e70f23a4 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/pipeline_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/query_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/query_index_mapping.json index 5a3d9d528372..abbfc440830d 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/query_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/query_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -107,13 +99,7 @@ }, "displayName": { "type": "text", - "analyzer": "om_analyzer", - "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - } - } + "analyzer": "om_analyzer" }, "description": { "type": "text", diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/search_entity_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/search_entity_index_mapping.json index 54b4e8682209..c2f398561a5a 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/search_entity_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/search_entity_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -110,10 +94,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/search_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/search_service_index_mapping.json index 1e6529b12111..40da5d6dc007 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/search_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/search_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/storage_service_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/storage_service_index_mapping.json index f028a62a7261..6b1ea2cccc38 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/storage_service_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/storage_service_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 1, - "max_gram": 2, - "filter": [ - "lowercase" - ] } }, "filter": { diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/stored_procedure_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/stored_procedure_index_mapping.json index 48ee58917b3a..d34ea0beb1cb 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/stored_procedure_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/stored_procedure_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +57,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/table_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/table_index_mapping.json index b5c775d27bbd..a453412a433c 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/table_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/table_index_mapping.json @@ -48,10 +48,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -66,10 +62,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -107,10 +99,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/tag_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/tag_index_mapping.json index c2ff5334fe7e..9e42fbb9f7e7 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/tag_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/tag_index_mapping.json @@ -48,10 +48,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +65,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/team_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/team_index_mapping.json index a10894757a00..913695d5b78d 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/team_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/team_index_mapping.json @@ -45,10 +45,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -66,10 +62,6 @@ "type": "keyword", "normalizer": "lowercase_normalizer", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/test_case_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/test_case_index_mapping.json index aeeba0b48fa3..d2c33668709f 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/test_case_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/test_case_index_mapping.json @@ -48,10 +48,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -69,10 +65,6 @@ "keyword": { "type": "keyword", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/test_case_resolution_status_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/test_case_resolution_status_index_mapping.json index 1964f2246b0d..cf000f6f4a9b 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/test_case_resolution_status_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/test_case_resolution_status_index_mapping.json @@ -136,10 +136,6 @@ "keyword": { "type": "keyword", "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -243,10 +239,6 @@ "keyword": { "type": "keyword", "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/test_suite_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/test_suite_index_mapping.json index 4a00e438d135..6cc6a1fcb141 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/test_suite_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/test_suite_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/topic_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/topic_index_mapping.json index 15096ab2856b..f537c79934cc 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/topic_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/topic_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -48,10 +40,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, @@ -64,13 +52,7 @@ }, "displayName": { "type": "text", - "analyzer": "om_analyzer", - "fields": { - "ngram": { - "type": "text", - "analyzer": "om_ngram" - } - } + "analyzer": "om_analyzer" }, "description": { "type": "text", @@ -208,10 +190,6 @@ "type": "keyword", "ignore_above": 256, "normalizer": "lowercase_normalizer" - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } }, diff --git a/openmetadata-service/src/main/resources/elasticsearch/en/user_index_mapping.json b/openmetadata-service/src/main/resources/elasticsearch/en/user_index_mapping.json index 0a3ac208f629..d53f481b9b39 100644 --- a/openmetadata-service/src/main/resources/elasticsearch/en/user_index_mapping.json +++ b/openmetadata-service/src/main/resources/elasticsearch/en/user_index_mapping.json @@ -17,14 +17,6 @@ "lowercase", "om_stemmer" ] - }, - "om_ngram": { - "tokenizer": "ngram", - "min_gram": 3, - "max_gram": 10, - "filter": [ - "lowercase" - ] } }, "filter": { @@ -64,10 +56,6 @@ "type": "keyword", "normalizer": "lowercase_normalizer", "ignore_above": 256 - }, - "ngram": { - "type": "text", - "analyzer": "om_ngram" } } },