We have a large existing database that we are trying to import into
elasticsearch using the CouchDB river. The documents in this database have
the unfortunate property that if if particular name-value pair does not
exist, the value is false. For instance, most documents would have:
"location":{"city":"San Francisco"}
but in the event were there is no location, it would be
"location":false
I have trying to turn off dynamic mapping, set up my own custom mapping,
etc, but nothing works -- I always fail to index the documents. Once
elasticsearch has decided on a mapping type, it will fail the first time it
sees the alternative type (boolean rather that object). What I would like
is for true,false, or null values to be simply ignored during mapping. Is
there any way to do this? Is there another approach that would work?
We have a large existing database that we are trying to import into elasticsearch using the CouchDB river. The documents in this database have the unfortunate property that if if particular name-value pair does not exist, the value is false. For instance, most documents would have:
"location":{"city":"San Francisco"}
but in the event were there is no location, it would be
"location":false
I have trying to turn off dynamic mapping, set up my own custom mapping, etc, but nothing works -- I always fail to index the documents. Once elasticsearch has decided on a mapping type, it will fail the first time it sees the alternative type (boolean rather that object). What I would like is for true,false, or null values to be simply ignored during mapping. Is there any way to do this? Is there another approach that would work?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.