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' ) ){
scriptsConfig.push({
_script: {
params: {
input: params.input
'_script': {
'params': {
'input': params.input
},
file: 'exact_match',
type: 'number',
order: 'desc'
'file': 'exact_match',
'type': 'number',
'order': 'desc'
}
});
}

12
test/unit/query/search.js

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

Loading…
Cancel
Save