Sort by value of array object

Hi a have this document:

'doc': {
'categories': [
{'id': 1, position: 1},
{'id': 2, position: 5}
]
}

and i need sort results by category.position with specific category.id
is it possible?

Patrik

--
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.
For more options, visit https://groups.google.com/groups/opt_out.