Field with various types

i have been struggling with the auto mapping / template mappings in order
to overcome the following issue:

i have a field that can have a string value or an object value
(non-structured). this multi typed field creates mapping exceptions causing
the document to be rejected by the indexer.

questions:

  • how can i tell ES to not index specific fields (skip them altogether:
    "person.field1" => skipped!! (I want person to be parsed - except
    person.field1)

  • is it possible to configure ES mapper so that it accepts person.field1
    with either string OR object...?

  • in general, if i'm dealing with unstructured json docs, can ES make sense
    here OR is it a stricted type system?

any help is appreciated!!

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/ac679e9c-6f2f-4aa5-8f6f-f0855f5ffb96%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.