Restrict mapping so that only a single entity is inserted rather than an array

I have a field which strictly needs to be a single entity. But elastic accepts array as well. Can I restrict this behaviour such that only one element can be inserted.

I do not think you can control that through mappings, so you would need to check client side before you index the data.

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