V
V
Vitaliy Semyanchuk2017-01-06 20:41:35
Angular
Vitaliy Semyanchuk, 2017-01-06 20:41:35

How to do multi sort under Elasticsearch?

Good afternoon.
Recently I have been using elasticsearch in conjunction with angularJS 1.5 .
The task was to make a sorting in which the goods would be displayed first:
1 - for which the field properties = 'product'
2 - for which the field properties = 'electronic'
3 - for which the field weight = '3'
4 - for which the field weight = '2 '
5 - whose field is type = 'group'
6 - whose field is weight = '1'
5 - whose field is weight = '5'
Tell me, is it possible to write such a query, and in which direction to look?
Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question