Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(search): Also de-duplicate the field queries based on field names #8788

Merged
merged 9 commits into from
Sep 7, 2023

Conversation

iprentic
Copy link
Contributor

@iprentic iprentic commented Sep 5, 2023

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Sep 5, 2023
@@ -120,7 +120,8 @@ private QueryBuilder buildInternalQuery(@Nullable QueryConfiguration customQuery
.map(this::getStandardFields)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the only use of getStandardFields? I feel like the reduction should not rely on the various usages implementing the average. I'd maybe create a new function that is like getStandardFields(List specs) instead of a single spec. Unit test that function.

@iprentic
Copy link
Contributor Author

iprentic commented Sep 6, 2023

Query before the change:

{
  "from": 0,
  "size": 100,
  "query": {
    "bool": {
      "must": [
        {
          "function_score": {
            "query": {
              "bool": {
                "should": [
                  {
                    "bool": {
                      "should": [
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "cluster^1.0",
                              "displayName^10.0",
                              "fieldDescriptions^0.1",
                              "description^1.0",
                              "type^1.0",
                              "title^10.0",
                              "skills^1.0",
                              "fieldPaths^5.0",
                              "typeNames^1.0",
                              "ldap^2.0",
                              "editedFieldDescriptions^0.1",
                              "definition^1.0",
                              "id^10.0",
                              "flowId^1.0",
                              "email^1.0",
                              "editedDescription^1.0",
                              "teams^1.0",
                              "qualifiedName^10.0",
                              "fullName^10.0",
                              "featureNamespace^1.0",
                              "tool^4.0",
                              "urn^10.0",
                              "orchestrator^1.0",
                              "jobId^1.0",
                              "customProperties^1.0",
                              "fieldLabels^0.2",
                              "name^10.0"
                            ],
                            "analyzer": "keyword",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        },
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "container^1.0",
                              "passingTests^1.0",
                              "roles^1.0",
                              "managerLdap^1.0",
                              "values^1.0",
                              "domains^1.0",
                              "parentNode^1.0",
                              "platformInstance^1.0",
                              "relatedTerms^1.0",
                              "platform^1.0",
                              "tags^0.5",
                              "features^1.0",
                              "fieldGlossaryTerms^0.5",
                              "hasRelatedTerms^2.0",
                              "primaryKeys^1.0",
                              "failingTests^1.0",
                              "editedFieldGlossaryTerms^0.5",
                              "isRelatedTerms^2.0",
                              "glossaryTerms^1.0",
                              "fieldTags^0.5",
                              "editedFieldTags^0.5"
                            ],
                            "analyzer": "query_urn_component",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        },
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "type.delimited^0.4",
                              "skills.delimited^0.4",
                              "editedFieldDescriptions.delimited^0.040000003",
                              "fieldDescriptions.delimited^0.040000003",
                              "displayName.delimited^4.0",
                              "name.delimited^4.0",
                              "orchestrator.delimited^0.4",
                              "fieldLabels.delimited^0.080000006",
                              "definition.delimited^0.4",
                              "fieldPaths.delimited^2.0",
                              "jobId.delimited^0.4",
                              "id.delimited^4.0",
                              "cluster.delimited^0.4",
                              "title.delimited^4.0",
                              "fullName.delimited^4.0",
                              "ldap.delimited^0.8",
                              "teams.delimited^0.4",
                              "tool.delimited^1.6",
                              "description.delimited^0.4",
                              "flowId.delimited^0.4",
                              "urn.delimited^5.0",
                              "featureNamespace.delimited^0.4",
                              "editedDescription.delimited^0.4",
                              "qualifiedName.delimited^4.0"
                            ],
                            "analyzer": "query_word_delimited",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        }
                      ],
                      "adjust_pure_negative": true,
                      "boost": 1
                    }
                  },
                  {
                    "bool": {
                      "should": [
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "qualifiedName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "term": {
                            "qualifiedName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "qualifiedName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "displayName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 18,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 80,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 56,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 3.584,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 25.919998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 11.52,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "jobId.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 1.44,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "jobId.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "term": {
                            "jobId.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "jobId.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 3.2399998,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "jobId.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "jobId.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.25,
                              "_name": "jobId"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "id.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 1.44,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "boost": 1,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 0.7,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.25,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "definition.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "term": {
                            "definition.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "boost": 2,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 1.4,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldDescriptions.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.044800002,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldLabels.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.089600004,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 3.2399998,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "id.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "definition.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldPaths.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 2.24,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "boost": 50,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 35,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 18,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 80,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 56,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 3.584,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "featureNamespace.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 25.919998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 11.52,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "featureNamespace.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "term": {
                            "featureNamespace.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "boost": 1,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 0.7,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "boost": 2,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 1.4,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldDescriptions.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.044800002,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldLabels.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.089600004,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "title.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "tool.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 1.792,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldPaths.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 2.24,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "boost": 50,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 35,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "tool.keyword": {
                              "value": "pets",
                              "boost": 40,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "term": {
                            "tool.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 28,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "ldap.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 4.5,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "displayName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "fullName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "fullName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "ldap.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 6.4799995,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "teams.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "ldap.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.896,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "skills.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "term": {
                            "skills.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "term": {
                            "teams.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "term": {
                            "teams.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "email.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "email"
                            }
                          }
                        },
                        {
                          "term": {
                            "email.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "email"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "skills.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fullName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "ldap.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.88,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "ldap.keyword": {
                              "value": "pets",
                              "boost": 20,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "ldap.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 14,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "type.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "type"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "type.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "type"
                            }
                          }
                        },
                        {
                          "term": {
                            "type.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "type"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "flowId.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "term": {
                            "flowId.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "flowId.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "cluster.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "cluster"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "flowId.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.25,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "flowId.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 1.44,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "orchestrator.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "orchestrator"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "flowId.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 3.2399998,
                              "_name": "flowId"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "orchestrator.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "orchestrator"
                            }
                          }
                        },
                        {
                          "term": {
                            "orchestrator.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "orchestrator"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "cluster.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "cluster"
                            }
                          }
                        },
                        {
                          "term": {
                            "cluster.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "cluster"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 18,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 80,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 56,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 3.584,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "featureNamespace.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 25.919998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 11.52,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "featureNamespace.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "term": {
                            "featureNamespace.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "featureNamespace"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.25,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "definition.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "term": {
                            "definition.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "displayName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 3.2399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "id.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 1.44,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "definition.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "definition"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "title.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 3.2399998,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "boost": 1,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 0.7,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.25,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "boost": 2,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 1.4,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldDescriptions.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.044800002,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldLabels.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.089600004,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "tool.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 1.792,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldPaths.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 2.24,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "boost": 50,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 35,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "title.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 1.44,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "tool.keyword": {
                              "value": "pets",
                              "boost": 40,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "term": {
                            "tool.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 28,
                              "_name": "tool"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "id.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "term": {
                            "typeNames.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "typeNames"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "boost": 1,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldDescriptions.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 0.7,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "boost": 2,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldLabels.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 1.4,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldDescriptions.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.044800002,
                              "_name": "fieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "qualifiedName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldLabels.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.089600004,
                              "_name": "fieldLabels"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedFieldDescriptions.keyword": {
                              "value": "pets",
                              "boost": 1,
                              "_name": "editedFieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedFieldDescriptions.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 0.7,
                              "_name": "editedFieldDescriptions"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "term": {
                            "editedDescription.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fieldPaths.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 2.24,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedFieldDescriptions.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.044800002,
                              "_name": "editedFieldDescriptions"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "name.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "description.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "id.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "qualifiedName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "term": {
                            "qualifiedName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "qualifiedName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "qualifiedName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "name.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "name"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "term": {
                            "description.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "description"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "editedDescription.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "editedDescription"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "id.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "id"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "boost": 50,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "term": {
                            "fieldPaths.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 35,
                              "_name": "fieldPaths"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "name.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "name"
                            }
                          }
                        }
                      ],
                      "adjust_pure_negative": true,
                      "boost": 1
                    }
                  }
                ],
                "adjust_pure_negative": true,
                "boost": 1
              }
            },
            "functions": [
              {
                "filter": {
                  "match_all": {
                    "boost": 1
                  }
                },
                "weight": 1
              },
              {
                "filter": {
                  "term": {
                    "deprecated": {
                      "value": "true",
                      "boost": 1
                    }
                  }
                },
                "weight": 0.5
              },
              {
                "filter": {
                  "term": {
                    "active": {
                      "value": "true",
                      "boost": 1
                    }
                  }
                },
                "weight": 2
              },
              {
                "filter": {
                  "term": {
                    "materialized": {
                      "value": "true",
                      "boost": 1
                    }
                  }
                },
                "weight": 0.5
              }
            ],
            "score_mode": "avg",
            "boost_mode": "multiply",
            "max_boost": 3.4028235e+38,
            "boost": 1
          }
        }
      ],
      "filter": [
        {
          "bool": {
            "must_not": [
              {
                "match": {
                  "removed": {
                    "query": true,
                    "operator": "OR",
                    "prefix_length": 0,
                    "max_expansions": 50,
                    "fuzzy_transpositions": true,
                    "lenient": false,
                    "zero_terms_query": "NONE",
                    "auto_generate_synonyms_phrase_query": true,
                    "boost": 1
                  }
                }
              }
            ],
            "adjust_pure_negative": true,
            "boost": 1
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "_source": {
    "includes": [
      "urn"
    ],
    "excludes": []
  },
  "sort": [
    {
      "_score": {
        "order": "desc"
      }
    },
    {
      "urn": {
        "order": "asc"
      }
    }
  ],
  "aggregations": {
    "_entityType": {
      "terms": {
        "field": "_index",
        "size": 20,
        "min_doc_count": 0,
        "shard_min_doc_count": 0,
        "show_term_doc_count_error": false,
        "order": [
          {
            "_count": "desc"
          },
          {
            "_key": "asc"
          }
        ]
      }
    }
  },
  "highlight": {
    "pre_tags": [
      ""
    ],
    "post_tags": [
      ""
    ],
    "fields": {
      "container": {},
      "container.*": {},
      "cluster": {},
      "cluster.*": {},
      "displayName": {},
      "displayName.*": {},
      "values": {},
      "values.*": {},
      "passingTests": {},
      "passingTests.*": {},
      "roles": {},
      "roles.*": {},
      "fieldDescriptions": {},
      "fieldDescriptions.*": {},
      "description": {},
      "description.*": {},
      "title": {},
      "title.*": {},
      "type": {},
      "type.*": {},
      "relatedTerms": {},
      "relatedTerms.*": {},
      "platform": {},
      "platform.*": {},
      "skills": {},
      "skills.*": {},
      "features": {},
      "features.*": {},
      "typeNames": {},
      "typeNames.*": {},
      "fieldPaths": {},
      "fieldPaths.*": {},
      "primaryKeys": {},
      "primaryKeys.*": {},
      "ldap": {},
      "ldap.*": {},
      "editedFieldGlossaryTerms": {},
      "editedFieldGlossaryTerms.*": {},
      "isRelatedTerms": {},
      "isRelatedTerms.*": {},
      "definition": {},
      "definition.*": {},
      "fieldTags": {},
      "fieldTags.*": {},
      "editedFieldDescriptions": {},
      "editedFieldDescriptions.*": {},
      "id": {},
      "id.*": {},
      "flowId": {},
      "flowId.*": {},
      "email": {},
      "email.*": {},
      "editedDescription": {},
      "editedDescription.*": {},
      "teams": {},
      "teams.*": {},
      "qualifiedName": {},
      "qualifiedName.*": {},
      "managerLdap": {},
      "managerLdap.*": {},
      "domains": {},
      "domains.*": {},
      "fullName": {},
      "fullName.*": {},
      "parentNode": {},
      "parentNode.*": {},
      "featureNamespace": {},
      "featureNamespace.*": {},
      "platformInstance": {},
      "platformInstance.*": {},
      "tool": {},
      "tool.*": {},
      "tags": {},
      "tags.*": {},
      "urn": {},
      "urn.*": {},
      "jobId": {},
      "jobId.*": {},
      "orchestrator": {},
      "orchestrator.*": {},
      "customProperties": {},
      "customProperties.*": {},
      "hasRelatedTerms": {},
      "hasRelatedTerms.*": {},
      "fieldGlossaryTerms": {},
      "fieldGlossaryTerms.*": {},
      "failingTests": {},
      "failingTests.*": {},
      "name": {},
      "name.*": {},
      "fieldLabels": {},
      "fieldLabels.*": {},
      "glossaryTerms": {},
      "glossaryTerms.*": {},
      "editedFieldTags": {},
      "editedFieldTags.*": {}
    }
  }
}

Query after the change:

{
  "from": 0,
  "size": 100,
  "query": {
    "bool": {
      "must": [
        {
          "function_score": {
            "query": {
              "bool": {
                "should": [
                  {
                    "bool": {
                      "should": [
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "skills^1.0",
                              "urn^10.0",
                              "customProperties^1.0",
                              "teams^1.0",
                              "ldap^2.0",
                              "displayName^10.0",
                              "fullName^10.0",
                              "title^1.0",
                              "email^1.0"
                            ],
                            "analyzer": "keyword",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        },
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "managerLdap^1.0",
                              "tags^0.5"
                            ],
                            "analyzer": "query_urn_component",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        },
                        {
                          "simple_query_string": {
                            "query": "pets",
                            "fields": [
                              "skills.delimited^0.4",
                              "fullName.delimited^4.0",
                              "ldap.delimited^0.8",
                              "teams.delimited^0.4",
                              "displayName.delimited^4.0",
                              "urn.delimited^5.0"
                            ],
                            "analyzer": "query_word_delimited",
                            "flags": -1,
                            "default_operator": "and",
                            "analyze_wildcard": false,
                            "auto_generate_synonyms_phrase_query": true,
                            "fuzzy_prefix_length": 0,
                            "fuzzy_max_expansions": 50,
                            "fuzzy_transpositions": true,
                            "boost": 1
                          }
                        }
                      ],
                      "adjust_pure_negative": true,
                      "boost": 1
                    }
                  },
                  {
                    "bool": {
                      "should": [
                        {
                          "match_phrase": {
                            "ldap.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 4.5,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "displayName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "fullName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "fullName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "term": {
                            "title.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "title"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "urn.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 5.6,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "customProperties.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "customProperties"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "term": {
                            "urn": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "urn"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "ldap.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 6.4799995,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "boost": 100,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "displayName.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 70,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "teams.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams4": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 32.399998,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "ldap.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.896,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "skills.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "term": {
                            "skills.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "term": {
                            "teams.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "term": {
                            "teams.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "teams"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "displayName.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 14.400001,
                              "_name": "displayName"
                            }
                          }
                        },
                        {
                          "term": {
                            "email.keyword": {
                              "value": "pets",
                              "boost": 10,
                              "_name": "email"
                            }
                          }
                        },
                        {
                          "term": {
                            "email.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 7,
                              "_name": "email"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "skills.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 0.448,
                              "_name": "skills"
                            }
                          }
                        },
                        {
                          "match_phrase_prefix": {
                            "fullName.delimited": {
                              "query": "pets",
                              "slop": 0,
                              "max_expansions": 50,
                              "zero_terms_query": "NONE",
                              "boost": 4.48,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "fullName.wordGrams3": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 22.5,
                              "_name": "fullName"
                            }
                          }
                        },
                        {
                          "match_phrase": {
                            "ldap.wordGrams2": {
                              "query": "pets",
                              "slop": 0,
                              "zero_terms_query": "NONE",
                              "boost": 2.88,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "ldap.keyword": {
                              "value": "pets",
                              "boost": 20,
                              "_name": "ldap"
                            }
                          }
                        },
                        {
                          "term": {
                            "ldap.keyword": {
                              "value": "pets",
                              "case_insensitive": true,
                              "boost": 14,
                              "_name": "ldap"
                            }
                          }
                        }
                      ],
                      "adjust_pure_negative": true,
                      "boost": 1
                    }
                  }
                ],
                "adjust_pure_negative": true,
                "boost": 1
              }
            },
            "functions": [
              {
                "filter": {
                  "match_all": {
                    "boost": 1
                  }
                },
                "weight": 1
              },
              {
                "filter": {
                  "term": {
                    "active": {
                      "value": "true",
                      "boost": 1
                    }
                  }
                },
                "weight": 2
              }
            ],
            "score_mode": "avg",
            "boost_mode": "multiply",
            "max_boost": 3.4028235e+38,
            "boost": 1
          }
        }
      ],
      "filter": [
        {
          "bool": {
            "must_not": [
              {
                "match": {
                  "removed": {
                    "query": true,
                    "operator": "OR",
                    "prefix_length": 0,
                    "max_expansions": 50,
                    "fuzzy_transpositions": true,
                    "lenient": false,
                    "zero_terms_query": "NONE",
                    "auto_generate_synonyms_phrase_query": true,
                    "boost": 1
                  }
                }
              }
            ],
            "adjust_pure_negative": true,
            "boost": 1
          }
        }
      ],
      "adjust_pure_negative": true,
      "boost": 1
    }
  },
  "_source": {
    "includes": [
      "urn"
    ],
    "excludes": []
  },
  "sort": [
    {
      "_score": {
        "order": "desc"
      }
    },
    {
      "urn": {
        "order": "asc"
      }
    }
  ],
  "aggregations": {
    "_entityType": {
      "terms": {
        "field": "_index",
        "size": 20,
        "min_doc_count": 0,
        "shard_min_doc_count": 0,
        "show_term_doc_count_error": false,
        "order": [
          {
            "_count": "desc"
          },
          {
            "_key": "asc"
          }
        ]
      }
    }
  },
  "highlight": {
    "pre_tags": [
      ""
    ],
    "post_tags": [
      ""
    ],
    "fields": {
      "skills": {},
      "skills.*": {},
      "urn": {},
      "urn.*": {},
      "customProperties": {},
      "customProperties.*": {},
      "teams": {},
      "teams.*": {},
      "ldap": {},
      "ldap.*": {},
      "displayName": {},
      "displayName.*": {},
      "managerLdap": {},
      "managerLdap.*": {},
      "fullName": {},
      "fullName.*": {},
      "title": {},
      "title.*": {},
      "email": {},
      "email.*": {},
      "tags": {},
      "tags.*": {}
    }
  }
}

@RyanHolstien
Copy link
Collaborator

Hmm, the above query examples don't seem equivalent to me? A bunch of fields are left out that don't seem like they're duplicates, unless I'm missing something?

@david-leifker
Copy link
Collaborator

The example might be off, it almost looks like the before and after were run on two different entitySpec collections. I'll pull this down and take a look. Good call out @RyanHolstien !

@david-leifker
Copy link
Collaborator

@RyanHolstien - Added additional test, it is not dropping fields.

@david-leifker david-leifker added the merge-pending-ci A PR that has passed review and should be merged once CI is green. label Sep 7, 2023
@david-leifker david-leifker merged commit cf16684 into master Sep 7, 2023
42 checks passed
@david-leifker david-leifker deleted the nd-dedup-fields branch September 7, 2023 20:29
spadhi7 added a commit to spadhi7/datahub that referenced this pull request Oct 4, 2023
* tag 'v0.11.0': (188 commits)
  fix(spark-test): upgrade gradle and fix spark smoke test (datahub-project#8777)
  fix(gms): Fixed Recently Viewed section for users with '@' in the URN. (datahub-project#8754)
  feat: add feedback widget (datahub-project#8732)
  fix(custom-search): fix custom search to be able to use unquoted query (datahub-project#8805)
  docs(db-retention): update with default setting (datahub-project#8797)
  feat(openapi): entity endpoints & analytics raw (datahub-project#8537)
  feat(search): Also de-duplicate the field queries based on field names (datahub-project#8788)
  fix(ingest): drop `wrap_aspect_as_workunit` method (datahub-project#8766)
  feat(ingest): drop sql_metadata parser (datahub-project#8765)
  docs: minor fix on versioning navbar and dropdown (datahub-project#8790)
  chore(ingest): upgrade sqlglot fork (datahub-project#8775)
  docs: add datahub source to integrations page (datahub-project#8787)
  fix(ingest/bigquery): fix partition and median queries for profiling (datahub-project#8778)
  fix(ingest/tableau): fix tableau native CLL for snowflake, add type annotations (datahub-project#8779)
  refactor(ingest): Add support for group-owners in dataflow entities (datahub-project#8154)
  feat(systemMetadata): Adding a lastRunId field system metadata  (datahub-project#8672)
  feat(airflow-plugin): add package type information (datahub-project#8795)
  fix(ingest/datahub): Support postgres; build(postgres): Modernize postgres docker setup (datahub-project#8762)
  docs(session): add documentation for session token duration and fix default (datahub-project#8791)
  chore(analytics): bump version (datahub-project#8786)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-pending-ci A PR that has passed review and should be merged once CI is green. product PR or Issue related to the DataHub UI/UX release-0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants