Validating mapping file

Hi,
I wanted to know if we have any way to check if any mapping file is present
or not in specified location for elastic search.
apart from that can we validate mapping json, if it correct or not.

-Himanshu

--

sorry but I don't understand very well your use case or what you are looking
for.
But, let me say that if you are using Java, you can have a look at the spring
factories project for elasticsearch :

You can have mapping files in your classpath and each time you start a node the
factory will check if your mapping already exists or not and push it if needed.

Not sure it helps here...

Le 20 décembre 2012 à 10:33, Himanshu Gupta himanshu.iit@gmail.com a écrit :

Hi,
I wanted to know if we have any way to check if any mapping file is present
or not in specified location for Elasticsearch.
apart from that can we validate mapping json, if it correct or not.

-Himanshu

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

Hi David,

Actually we are adding mapping file which will help ES to determine correct
data type for field, instead of relying on ES to evaluate data type. We
want to make sure that mapping file added in $ES_HOME/config/mapping is
being used and is valid. mapping file is invalid in cases where I fotgor to
mention type (data type) for a field or I might have given wrong data type
which ES does not understand. I want to validate without starting ES
deployment.

Regards,
Himanshu

On Thu, Dec 20, 2012 at 3:31 PM, David Pilato david@pilato.fr wrote:

**
sorry but I don't understand very well your use case or what you are
looking for.
But, let me say that if you are using Java, you can have a look at the
spring factories project for elasticsearch :
GitHub - dadoonet/spring-elasticsearch: Spring factories for elasticsearch

You can have mapping files in your classpath and each time you start a
node the factory will check if your mapping already exists or not and push
it if needed.

Not sure it helps here...

Le 20 décembre 2012 à 10:33, Himanshu Gupta himanshu.iit@gmail.com a
écrit :

Hi,
I wanted to know if we have any way to check if any mapping file is
present or not in specified location for Elasticsearch.
apart from that can we validate mapping json, if it correct or not.

-Himanshu

--

--
David Pilato
http://www.scrutmydocs.org/
http://dev.david.pilato.fr/
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

--

--