Hey all,
I stumbled upon an issue with elasticsearch indexing couchdb documents: _id
field is indexed, but not added to the mapping, and hence the _all field,
so if I do a query_string search, I have to specifically use the _id:XXX123
to find the specific document. I am most likely missing something obvious.
Here's the mapping I am submitting to elasticsearch:
{"sp-type":{
"properties":{
"_id":{
"store":"yes",
"type":"string",
"index":"not_analyzed"
},
"_rev":{
"type":"string",
"index":"not_analyzed"
},
"title":{
"type":"string",
"index":"not_analyzed"
},
"code":{
"type":"string",
"index":"not_analyzed"
},
"description":{
"type":"string",
"index":"not_analyzed"
},
"dataPriority":{
"type":"long"
},
"specificationPriority":{
"type":"long"
},
"mediaPriority":{
"type":"long"
}
}
}}
and this is what's being returned when I look up the index metadata through
elasticsearch-head:
{
"state":"open",
"settings":{
"index.number_of_shards":5,
"index.number_of_replicas":1,
"index.version.created":200001
},
"mappings":{
"sp-type":{
"properties":{
"_rev":{
"index":"not_analyzed",
"type":"string"
},
"title":{
"index":"not_analyzed",
"type":"string"
},
"specificationPriority":{
"type":"long"
},
"dataPriority":{
"type":"long"
},
"description":{
"index":"not_analyzed",
"type":"string"
},
"code":{
"index":"not_analyzed",
"type":"string"
},
"mediaPriority":{
"type":"long"
}
}
}
},
"aliases":[ ]
}
Perhaps I am specifying in the wrong level of the mapping document?
Essentially, I would be happy if the _id field would somehow make it into
the _all field.
regards,
Andrius Juozapaitis