Open DaveForeman opened 9 years ago
We also have a need to generate the index type based on the type discriminator found in Mongo. I have modified the Indexer and the Mongo River definition to allow an option of "type_discriminator" to specify where to find the type from the mongo db obj. Usage would look like this: "options": { "type_discriminator" : "_t" }
We are using the newest C# driver to put our data into mongo. The models derive from a base class that marks them with an id of type GUID. The C# driver is placing them into mongo as UUID - binary (guid representation = standard). When the river goes to read them out, it indexes them as bson.type.org.binary24asd or something (the old driver defaults to read and understand LUUID). Need the project to be upgraded to the newest mongo java driver to support reading standard GUID from the database. I have created a fork: it's building and works. The changes are small but I am not super sure about some of the things I removed/changed to help it build. Especially the DBRef not having a .getRef() anymore. Here is the fork. Could you have a look at see how you would feel about pull requesting it in? https://github.com/DaveForeman/elasticsearch-river-mongodb