I index the data using the default mechanism (without passing any schema / structure). I am just an XPOST JSON document.
I want to use:
- one single index
- various types, but not tied to the data itself
The problem I am facing is that my JSON document has one specific property that sometimes nests recursively. When this happens, ElasticSearch errors during the PUT operation of indexing data.
The content of this attribute is not important for my searches / indexes. I know that I can exclude it from the data, but I still want it to be stored as a NoSQL solution.
Example:
{prop1: "something", dirty_prop: {someprop: 123, dirty_prop: {....}}}
As you can see above, there is a nested inclusion that will fail.
The question arises: how to avoid errors by storing data. I will assume that removing dirty_prop from indexing will allow it to go through. What is the easiest way to exclude it without having to supply a complete structure (I cannot provide a complete structure / scheme, because I get new attributes in my data).
source share