-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_parent mapping and index ? #64
Comments
Index and mapping can be created before the river. Custom mapping can be implemented using this technique. |
See here [1] for example. |
I have many time try to create implementation _river auto set _parent when index data but it is not working, the example |
Example of script: if(ctx.document._parentId) { ctx._parent = ctx.document._parentId; delete ctx.document._parentId;}
Thank you for support |
Hi, I need to release a new version. I will do that later today. Thanks, -----Original Message----- Thank you for support Reply to this email directly or view it on GitHub: |
great, thank very much |
Please let me know if it works. |
so thank you for supporting this feature but it is not working on version 1.6.5, the following is my sample set
|
Hi, Can you please provide ES log and some sample data to store in Mongo? Thanks, Sent via BlackBerry by AT&T -----Original Message----- so thank you for supporting this feature but it is not working on version 1.6.5, the following is my sample set
Reply to this email directly or view it on GitHub: |
Hi, Did you create the custom mapping in "myIndex" before to start the river (see here an example [1])? You can also find here [2] the unit test used to validate this feature. [1] - https://github.com/richardwilly98/elasticsearch-river-mongodb/blob/ae10fcff050cf08e128ccc91e23fe46c013cdf2d/resources/issues/64/_01_create-index-with-mapping.json Thanks, |
Thank @richardwilly98 , I've done anything that you'd guided me to do, but only author type was indexed, and book type wasn't. My log file I had after testing this function is: [2013-04-05 23:20:23,712][INFO ][cluster.metadata ] [Orka] [authors] creating index, cause [api], shards [1]/[1], mappings [author, book]
1 error |
Oh, it works when install "plugin -install elasticsearch/elasticsearch-lang-javascript/1.3.0". Thanks again! |
how to parent mapping and index ?
PLZ
The text was updated successfully, but these errors were encountered: