Validating Mapping

Hi all,

I've been trying to clean out the corner cases out of my code in
elasticsearch, but I'm having a problem with mappings. Is there a function
within the API which checks if a given Json is a valid mapping without
calling the REST client?

I find that I get UncategorizedExecutionExceptions when I put certain
invalid mappings like
"properties": "string"

I'd like to avoid catching this exception class if possible so that
debugging is easier since the exception fairly general. I was thinking a
mapping validator would solve the problem, but I'm definitely fine with
implementing other solutions if they are available.

Any help would be 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
To view this discussion on the web visit
For more options, visit