Hi Shay,
I am facing some problem in SORTING. I need to know whether my
requirements in the sorting are implementable in ES or not???
The scenario is :
I have an index as relations which is storing the the relationship between
two entities
The structure of the document is :
{
guid_1:11,
relationship:"fan_of",
guid_2:"12"
}
{
guid_1:11,
relationship:"follower_of",
guid_2:"12"
}
{
guid_1:11,
relationship:"fan_of",
guid_2:"13"
}
{
guid_1:22,
relationship:"fan_of",
guid_2:"12"
}
{
guid_1:22,
relationship:"fan_of",
guid_2:"14"
}
These document stores the relations. The first document represents that
guid_1 is a fan of guid_2. similarly, the second doc presents the guid_1 is
follower of guid_2.
So Now I need to find all the fan_of relations doc of guid_1 = 11 so that
are documents with guid_2 = 12,13 but sorting the document with guid_2 = 12
should be sorted first and then guid_2= 13.
So I need to search the fan_of relations of sorted on number of fan the
guid_2 is having. Is there any way to solve this query???
Please give your suggestion.
Narinder Kaur
--