0

When Elasticsearch does automatically add schema for unknown/dynamic fields?

"fields" : {
              "keyword" : {
                "type" : "keyword",
                "ignore_above" : 256
              }
            }

1 Answers1

1

It's called dynamic field mapping and this is enabled by default.

You can disable that feature if necessary.

Val
  • 207,596
  • 13
  • 358
  • 360
  • Hi https://stackoverflow.com/users/4604579/val - Actually its not adding automatically when using elastic search 7.10 with hibernate Search 6 But before it was working or adding dynamic mapping for unknown fields when we were using elastic search 6.8 and hibernate-search 5. any reason?? – Prashant Kamble Mar 14 '22 at 12:51
  • This has always been enabled by default in ES. So probably that Hibernate Search 5 and 6 have a different configuration of this setting. – Val Mar 14 '22 at 12:55