|
|
|
@ -9,6 +9,8 @@ responses['client/suggest/fail/1'] = function( cmd, cb ){
|
|
|
|
|
}; |
|
|
|
|
responses['client/search/ok/1'] = function( cmd, cb ){ |
|
|
|
|
return cb( undefined, searchEnvelope([{ |
|
|
|
|
_id: 'myid1', |
|
|
|
|
_type: 'mytype1', |
|
|
|
|
_source: { |
|
|
|
|
value: 1, |
|
|
|
|
center_point: { lat: 100.1, lon: -50.5 }, |
|
|
|
@ -16,6 +18,8 @@ responses['client/search/ok/1'] = function( cmd, cb ){
|
|
|
|
|
admin0: 'country1', admin1: 'state1', admin2: 'city1' |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
_id: 'myid2', |
|
|
|
|
_type: 'mytype2', |
|
|
|
|
_source: { |
|
|
|
|
value: 2, |
|
|
|
|
center_point: { lat: 100.2, lon: -51.5 }, |
|
|
|
@ -26,6 +30,9 @@ responses['client/search/ok/1'] = function( cmd, cb ){
|
|
|
|
|
}; |
|
|
|
|
responses['client/mget/ok/1'] = function( cmd, cb ){ |
|
|
|
|
return cb( undefined, mgetEnvelope([{ |
|
|
|
|
_id: 'myid1', |
|
|
|
|
_type: 'mytype1', |
|
|
|
|
found: true, |
|
|
|
|
_source: { |
|
|
|
|
value: 1, |
|
|
|
|
center_point: { lat: 100.1, lon: -50.5 }, |
|
|
|
@ -33,6 +40,9 @@ responses['client/mget/ok/1'] = function( cmd, cb ){
|
|
|
|
|
admin0: 'country1', admin1: 'state1', admin2: 'city1' |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
_id: 'myid2', |
|
|
|
|
_type: 'mytype2', |
|
|
|
|
found: true, |
|
|
|
|
_source: { |
|
|
|
|
value: 2, |
|
|
|
|
center_point: { lat: 100.2, lon: -51.5 }, |
|
|
|
|