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 ){
var scriptsConfig = [
{
'_script': {
'file': admin_boost,
'type': 'number',
'order': 'desc'
}
},
{
'_script': {
'file': popularity,

7
test/unit/query/reverse.js

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

7
test/unit/query/search.js

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

7
test/unit/query/sort.js

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

Loading…
Cancel
Save