babenkoivan / elastic-migrations

Elasticsearch migrations for Laravel
MIT License
188 stars 32 forks source link

how do I set the dynamic mapping to false? #31

Closed yapjinkun closed 3 years ago

yapjinkun commented 3 years ago

Anyway to disable the dynamic mapping?

Reference: https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic.html

lunfel commented 3 years ago

I have a very similar issue. I would like to do the same with disabling date detection. https://www.elastic.co/guide/en/elasticsearch/reference/current/dynamic-field-mapping.html#_disabling_date_detection

It seems like we cannot add these parameters into the mapping.

babenkoivan commented 3 years ago

Hey guys, it's not possible at the moment. I'll add it to my to-do list.

github-actions[bot] commented 3 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

babenkoivan commented 3 years ago

Hi all, it is now possible with new raw methods, for example, Index::putMappingRaw().