I am indexing data using the default mechanism ( without passing any schema/structure ). I simply XPOST the JSON document.
I want to use :
- one single index
- various types, but not tied to the data itself
The issue I am having is that my JSON document has one particular property that has sometimes recursively nests itself. When it does, ElasticSearch errors on the data indexing PUT operation.
The content of such attribute is not important for my searches/indexing purposes. I know I can exclude it from the data, but I still want it to be stored like a NoSQL solution.
example:
{ prop1 : "something", dirty_prop : { someprop : 123 , dirty_prop : { .... } } }
As it can be seen above, there is a nested inclusion, which will fail.
The question is : how to avoid the error, preserving the data. I presume that removing dirty_prop from the indexing will allow it through. What is the simplest way to exclude it, without having to supply a complete structure ( I cannot supply a complete structure/schema because I get new attributes in my data ).