davrob
(davrob)
August 22, 2012, 10:31am
1
davrob
(davrob)
August 22, 2012, 11:41am
2
Actually, looking more closely at the first thread, I have a similar
structure to this:
{
"name" : "Snoprinsessa Barbie",
"items" : [
{ "name" : "Faux fur-trimmed parka", "id" : 2 },
{ "name" : "Stud Diamond Ring", " id " : 3 }
]
}
Any sorting I would want to do would be filtered to make the results
single-valued.
i.e. a term filter with id=3, for the above example
Which I think is more like these examples:
http://elasticsearch-users.115913.n3.nabble.com/Sort-on-nested-object-td3797238.html
http://elasticsearch-users.115913.n3.nabble.com/sort-not-working-with-nested-query-in-elasticsearch-td3486125.html#a3486720
do I need a plugin for this or is it possible to use out-of-the-box
sorting?
On Wednesday, August 22, 2012 11:31:08 AM UTC+1, davrob2 wrote:
Hi,
Looking through the forums, Shay seems to have given two different answers
to the same question:
http://elasticsearch-users.115913.n3.nabble.com/Sort-on-a-deeply-nested-field-tp3518043p3522355.html
http://elasticsearch-users.115913.n3.nabble.com/Sorting-by-an-nested-object-field-tp3590066p3591950.html
Has anyone got SINGLE VALUED - nested fields to sort properly?
--