Browse Source

Quote properties.

(query/sort, test/unit/query/search).js
	-Address @dianashk's comment:
	https://github.com/pelias/api/pull/113/files#r29764750
pull/113/head
Severyn Kozak 10 years ago
parent
commit
1f25303523
  1. 12
      query/sort.js
  2. 12
      test/unit/query/search.js

12
query/sort.js

@ -53,13 +53,13 @@ module.exports = function( params ){
if( isObject( params ) && params.hasOwnProperty( 'input' ) ){ if( isObject( params ) && params.hasOwnProperty( 'input' ) ){
scriptsConfig.push({ scriptsConfig.push({
_script: { '_script': {
params: { 'params': {
input: params.input 'input': params.input
}, },
file: 'exact_match', 'file': 'exact_match',
type: 'number', 'type': 'number',
order: 'desc' 'order': 'desc'
} }
}); });
} }

12
test/unit/query/search.js

@ -60,13 +60,13 @@ var sort = [
} }
}, },
{ {
_script: { '_script': {
params: { 'params': {
input: 'test' 'input': 'test'
}, },
file: 'exact_match', 'file': 'exact_match',
type: 'number', 'type': 'number',
order: 'desc' 'order': 'desc'
} }
} }
]; ];

Loading…
Cancel
Save