Hi all,
Is it possible for ES to sort records that are related to one another as a
linked list? For example, is there a query that would order the following
sample data?
[
{
"id":"572bc3df-f567-432e-8087-718b1517099a",
"previous":"",
"next":"3481ba2f-2bf8-4ea2-a187-311ed33d8f85"
},
{
"id":"3481ba2f-2bf8-4ea2-a187-311ed33d8f85",
"previous":"572bc3df-f567-432e-8087-718b1517099a",
"next":"dc01b22e-1663-4276-9ebe-5ecdb0d976ef"
},
{
"id":"dc01b22e-1663-4276-9ebe-5ecdb0d976ef",
"previous":"3481ba2f-2bf8-4ea2-a187-311ed33d8f85",
"next":"5281764d-7f84-4a8e-910d-124e003aabed"
},
{
"id":"5281764d-7f84-4a8e-910d-124e003aabed",
"previous":"dc01b22e-1663-4276-9ebe-5ecdb0d976ef",
"next":""
}
]
I've read the scoring and sorting documentation as well as googled around,
but haven't found anything that would allow me to say "put this item before
that item if 'this.id'=='that.previous'". Is such a thing possible with ES?
Thanks,
Shane
--
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 elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/8b58eb8b-7c01-456f-b8a8-7798844ce548%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.