Browse Source

set search_using_ids query_type to 'original'

pull/912/head
Stephen Hess 8 years ago
parent
commit
5bcfbe76bc
  1. 2
      query/address_search_using_ids.js
  2. 2
      test/unit/query/address_search_using_ids.js

2
query/address_search_using_ids.js

@ -168,7 +168,7 @@ function generateQuery( clean, res ){
logger.info(logParts.map(part => `[${part}]`).join(' '));
return {
type: 'fallback_using_ids',
type: 'original',
body: addressUsingIdsQuery.render(vs)
};

2
test/unit/query/address_search_using_ids.js

@ -51,7 +51,7 @@ module.exports.tests.base_query = (test, common) => {
const generatedQuery = generateQuery(clean, res);
t.equals(generatedQuery.type, 'fallback_using_ids');
t.equals(generatedQuery.type, 'original');
t.equals(generatedQuery.body.vs.var('input:housenumber').toString(), 'housenumber value');
t.equals(generatedQuery.body.vs.var('input:street').toString(), 'street value');

Loading…
Cancel
Save