Search NOT working for json ingestion

Hi all,

I have just written a script for json ingestion into elasticsearch and i have indexed my json document, but when i tried to search for certain terms, it returns this error msg which I do not know how to resolve. I am not quite sure what is the error on field expansion matches too many fields, limit: 1024, got: 3310

Looking forward to any sort of advice

{
  "error" : {
    "root_cause" : [
      {
        "type" : "query_shard_exception",
        "reason" : "failed to create query: {\n  \"query_string\" : {\n    \"query\" : \"Management\",\n    \"fields\" : [ ],\n    \"type\" : \"best_fields\",\n    \"default_operator\" : \"or\",\n    \"max_determinized_states\" : 10000,\n    \"enable_position_increments\" : true,\n    \"fuzziness\" : \"AUTO\",\n    \"fuzzy_prefix_length\" : 0,\n    \"fuzzy_max_expansions\" : 50,\n    \"phrase_slop\" : 0,\n    \"analyze_wildcard\" : false,\n    \"escape\" : false,\n    \"auto_generate_synonyms_phrase_query\" : true,\n    \"fuzzy_transpositions\" : true,\n    \"boost\" : 1.0\n  }\n}",
        "index_uuid" : "uC4adilAQsa4Npd8Wng0fg",
        "index" : "a-index"
      }
    ],
    "type" : "search_phase_execution_exception",
    "reason" : "all shards failed",
    "phase" : "query",
    "grouped" : true,
    "failed_shards" : [
      {
        "shard" : 0,
        "index" : "a-index",
        "node" : "Zhb441p7SUCJ6b6vVE8yag",
        "reason" : {
          "type" : "query_shard_exception",
          "reason" : "failed to create query: {\n  \"query_string\" : {\n    \"query\" : \"Management\",\n    \"fields\" : [ ],\n    \"type\" : \"best_fields\",\n    \"default_operator\" : \"or\",\n    \"max_determinized_states\" : 10000,\n    \"enable_position_increments\" : true,\n    \"fuzziness\" : \"AUTO\",\n    \"fuzzy_prefix_length\" : 0,\n    \"fuzzy_max_expansions\" : 50,\n    \"phrase_slop\" : 0,\n    \"analyze_wildcard\" : false,\n    \"escape\" : false,\n    \"auto_generate_synonyms_phrase_query\" : true,\n    \"fuzzy_transpositions\" : true,\n    \"boost\" : 1.0\n  }\n}",
          "index_uuid" : "uC4adilAQsa4Npd8Wng0fg",
          "index" : "a-index",
          "caused_by" : {
            "type" : "illegal_argument_exception",
            "reason" : "field expansion matches too many fields, limit: 1024, got: 3310"
          }
        }
      }
    ]
  },
  "status" : 400
}

Is this error due to the fact that i have 3310 lines of text-data that elastic has to go through every single one of them in order to be able to do the search for the particular term, and it is preventing the search from happening as it will take up too much resources? Based on what i read from this post https://discuss.elastic.co/t/error-since-7-4-upgrade-field-expansion-matches-too-many-fields/204087

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.