pelias-query
Advanced tools
Comparing version 4.0.0 to 5.0.0
@@ -31,2 +31,3 @@ { | ||
"focus:decay": 0.5, | ||
"focus:weight": 2, | ||
@@ -82,3 +83,3 @@ "function_score:score_mode": "avg", | ||
"popularity:modifier": "sqrt", | ||
"popularity:max_boost": 2, | ||
"popularity:max_boost": 999999, | ||
"popularity:weight": 1, | ||
@@ -88,4 +89,4 @@ | ||
"population:modifier": "sqrt", | ||
"population:max_boost": 2, | ||
"population:weight": 1, | ||
"population:max_boost": 999999, | ||
"population:weight": 2, | ||
@@ -92,0 +93,0 @@ "localregions:weight": 10, |
{ | ||
"name": "pelias-query", | ||
"version": "4.0.0", | ||
"version": "5.0.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -16,2 +16,3 @@ | ||
!vs.isset('function_score:boost_mode') || | ||
!vs.isset('focus:weight') || | ||
!vs.isset('focus:function') || | ||
@@ -30,3 +31,3 @@ !vs.isset('focus:offset') || | ||
score_mode: vs.var('function_score:score_mode'), | ||
boost_mode: vs.var('function_score:boost_mode'), | ||
boost_mode: vs.var('function_score:boost_mode') | ||
} | ||
@@ -36,3 +37,3 @@ }; | ||
// decay function | ||
var func = {}; | ||
var func = { weight: vs.var('focus:weight') }; | ||
func[ vs.var('focus:function') ] = {}; | ||
@@ -52,2 +53,2 @@ func[ vs.var('focus:function') ][ vs.var('centroid:field') ] = { | ||
}; | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47213
1098