Browse Source

flipping the popularity population order

pull/169/head
Harish Krishna 10 years ago
parent
commit
049a96efd6
  1. 4
      query/sort.js
  2. 4
      test/unit/query/reverse.js
  3. 4
      test/unit/query/search.js
  4. 4
      test/unit/query/sort.js

4
query/sort.js

@ -17,14 +17,14 @@ module.exports = function( params ){
},
{
'_script': {
'file': population,
'file': popularity,
'type': 'number',
'order': 'desc'
}
},
{
'_script': {
'file': popularity,
'file': population,
'type': 'number',
'order': 'desc'
}

4
test/unit/query/reverse.js

@ -27,14 +27,14 @@ var sort = [
},
{
'_script': {
'file': population,
'file': popularity,
'type': 'number',
'order': 'desc'
}
},
{
'_script': {
'file': popularity,
'file': population,
'type': 'number',
'order': 'desc'
}

4
test/unit/query/search.js

@ -27,14 +27,14 @@ var sort = [
},
{
'_script': {
'file': population,
'file': popularity,
'type': 'number',
'order': 'desc'
}
},
{
'_script': {
'file': popularity,
'file': population,
'type': 'number',
'order': 'desc'
}

4
test/unit/query/sort.js

@ -27,14 +27,14 @@ var expected = [
},
{
'_script': {
'file': population,
'file': popularity,
'type': 'number',
'order': 'desc'
}
},
{
'_script': {
'file': popularity,
'file': population,
'type': 'number',
'order': 'desc'
}

Loading…
Cancel
Save