richardwilly98 / elasticsearch-river-mongodb

MongoDB River Plugin for ElasticSearch
1.12k stars 215 forks source link

Mapping GridFS #545

Open henrikaya opened 9 years ago

henrikaya commented 9 years ago

Hi,

I've been experienced an issue.

I have two mongodb databases : one in GridFS mode, the other one in classic mode. The first one contain records with a payload (large, binary) and some custom metadata, the second one contain only associated custom metadata.

The river duplicates these data in two different indexes in Elasticsearch.

Problem : metadata from GridFS database don't appear in Elasticsearch (the mapping I specify to ES seems to be replaced by default mapping, so all my custom fields disappear), although all custom metadata from classic mode database appear in ES.

So my question is : is it possible to specify a custom mapping to a GridFS database ? (I only see the classic mapping in the home page).

Thank you for your time.

Configuration :

River Plugin : 2.0.9 MongoDB : 3.0.1 ElasticSearch : 1.5.0 Debian (jessie)