Browse Source

adding admin_boost

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

7
query/sort.js

@ -9,6 +9,13 @@ var isObject = require( 'is-object' );
module.exports = function( params ){ module.exports = function( params ){
var scriptsConfig = [ var scriptsConfig = [
{
'_script': {
'file': admin_boost,
'type': 'number',
'order': 'desc'
}
},
{ {
'_script': { '_script': {
'file': popularity, 'file': popularity,

7
test/unit/query/reverse.js

@ -19,6 +19,13 @@ module.exports.tests.interface = function(test, common) {
var sort = [ var sort = [
'_score', '_score',
{
'_script': {
'file': admin_boost,
'type': 'number',
'order': 'desc'
}
},
{ {
'_script': { '_script': {
'file': popularity, 'file': popularity,

7
test/unit/query/search.js

@ -19,6 +19,13 @@ module.exports.tests.interface = function(test, common) {
var sort = [ var sort = [
'_score', '_score',
{
'_script': {
'file': admin_boost,
'type': 'number',
'order': 'desc'
}
},
{ {
'_script': { '_script': {
'file': popularity, 'file': popularity,

7
test/unit/query/sort.js

@ -19,6 +19,13 @@ module.exports.tests.interface = function(test, common) {
}; };
var expected = [ var expected = [
{
'_script': {
'file': admin_boost,
'type': 'number',
'order': 'desc'
}
},
{ {
'_script': { '_script': {
'file': popularity, 'file': popularity,

Loading…
Cancel
Save