You can disable _source field in mapping but note that won't be possible anymore in the future. Also, IMO as Elasticsearch gives you in one single Network trip, all the information you need to display results to your users, you don't really need to send other requests to Mongo.
David > Le 6 avr. 2015 à 10:35, Cyril Cherian <[email protected]> a écrit : > > Imagine I have some data stored in mongoDB collection. > Example: > Collection name: Users > record1: { > "first":"Cyril", > "age":33, > "id":1234 > } > record2: { > "first":"Jeff", > "age":23, > "id":3423 > } > > My idea is to index this mongo data in the Elastic. > Such that Elastic only stores the IDs but not the full JSON. > > So when I query in Elastic for getting users above the age of 30 I must get > only 1234 and not the full JSON. > I will use this ID to search in mongoDB. > The idea is to store only the index info in Elastic while teh full data may > reside on some other DB. > > Is this possible ? > > -- > You received this message because you are subscribed to the Google Groups > "elasticsearch" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/fa48fe10-e9da-4011-a58b-6db1522eb128%40googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/463B6851-84AD-4661-811C-590F67829E4A%40pilato.fr. For more options, visit https://groups.google.com/d/optout.
