Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pelias/api
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: e5b712f967a0226d47046e545fe729a8b59ec43f
Choose a base ref
..
head repository: pelias/api
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: abc03c170326bceb434a8e549f12409346d0bcce
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 query/text_parser_pelias.js
2 changes: 1 addition & 1 deletion query/text_parser_pelias.js
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ function addParsedVariablesToQueryVariables(clean, vs) {

// street name
if (!_.isEmpty(clean.parsed_text.street) && _.isEmpty(clean.parsed_text.cross_street)) {
if (clean.parsed_text.street != clean.parsed_text.subject) {
if (clean.parsed_text.street !== clean.parsed_text.subject) {
// do not query the `street` field if this is an intersection parse
// otherwise the order of the intersection in the data will determine what results come first
vs.var('input:street', clean.parsed_text.street);