Skip to content

Commit

Permalink
Add more options to the sort clause in _search
Browse files Browse the repository at this point in the history
  • Loading branch information
bleskes committed Oct 27, 2015
1 parent 6f72245 commit af2ec34
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions api_server/es_1_0/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,16 @@ module.exports = function (api) {
'{field}': {
'order': {
__one_of: ['desc', 'asc']
},
missing: {
__one_of: ['_last', '_first']
},
mode: {
__one_of: ['min', 'max', 'avg', 'sum']
},
nested_path: "",
nested_filter: {
__scope_link: "GLOBAL.filter"
}
}
},
Expand Down
10 changes: 10 additions & 0 deletions api_server/es_2_0/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,16 @@ module.exports = function (api) {
'{field}': {
'order': {
__one_of: ['desc', 'asc']
},
missing: {
__one_of: ['_last', '_first']
},
mode: {
__one_of: ['min', 'max', 'avg', 'sum']
},
nested_path: "",
nested_filter: {
__scope_link: "GLOBAL.filter"
}
}
},
Expand Down

0 comments on commit af2ec34

Please sign in to comment.