Browse Source

updated query module to branch from hashcode

fixed tests to use `boost_mode` value of `multiply` instead of `replace`
pull/666/head
Stephen Hess 8 years ago
parent
commit
8339a66e91
  1. 2
      package.json
  2. 2
      test/unit/fixture/search_boundary_country.js
  3. 2
      test/unit/fixture/search_fallback.js
  4. 2
      test/unit/fixture/search_geodisambiguation.js
  5. 2
      test/unit/fixture/search_linguistic_bbox.js
  6. 2
      test/unit/fixture/search_linguistic_focus.js
  7. 2
      test/unit/fixture/search_linguistic_focus_bbox.js
  8. 2
      test/unit/fixture/search_linguistic_focus_null_island.js
  9. 2
      test/unit/fixture/search_linguistic_only.js
  10. 2
      test/unit/fixture/search_linguistic_viewport.js
  11. 2
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js
  12. 2
      test/unit/fixture/search_with_category_filtering.js
  13. 2
      test/unit/fixture/search_with_source_filtering.js

2
package.json

@ -55,7 +55,7 @@
"pelias-config": "2.1.0", "pelias-config": "2.1.0",
"pelias-logger": "0.0.8", "pelias-logger": "0.0.8",
"pelias-model": "4.2.0", "pelias-model": "4.2.0",
"pelias-query": "pelias/query#f890a72", "pelias-query": "pelias/query#reorganize-queries-for-scoring",
"pelias-text-analyzer": "1.3.0", "pelias-text-analyzer": "1.3.0",
"stats-lite": "2.0.3", "stats-lite": "2.0.3",
"through2": "2.0.1" "through2": "2.0.1"

2
test/unit/fixture/search_boundary_country.js

@ -51,7 +51,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_fallback.js

@ -517,7 +517,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 20, 'size': 20,

2
test/unit/fixture/search_geodisambiguation.js

@ -246,7 +246,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 20, 'size': 20,

2
test/unit/fixture/search_linguistic_bbox.js

@ -54,7 +54,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_focus.js

@ -57,7 +57,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_focus_bbox.js

@ -68,7 +68,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_focus_null_island.js

@ -57,7 +57,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_only.js

@ -43,7 +43,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_viewport.js

@ -43,7 +43,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -43,7 +43,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 10, 'size': 10,

2
test/unit/fixture/search_with_category_filtering.js

@ -44,7 +44,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 20, 'size': 20,

2
test/unit/fixture/search_with_source_filtering.js

@ -43,7 +43,7 @@ module.exports = {
} }
], ],
'score_mode': 'avg', 'score_mode': 'avg',
'boost_mode': 'replace' 'boost_mode': 'multiply'
} }
}, },
'size': 20, 'size': 20,

Loading…
Cancel
Save