#StackBounty: #elasticsearch How to get results weighted by references from ElasticSearch

Bounty: 100

I have a dataset consisting of Notes referencing other Notes.

{id:1, note: "lorem ipsum", references: [3]},
{id:2, note: "lorem ipsum", references: [1,3]},
{id:3, note: "lorem ipsum", references: [2]},

I want elastic search to use the references to weight the results, so in this case if I search for lorem I should get id 3 back since it has the most references. According to their docs, their graph solution does exactly this, but I also see examples where they are doing similar things.

But no explanation of how this is mapped to the Index. So my question is: how does one set up an ES index that uses references (indices)?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.