Closed karenmajewicz closed 2 years ago
See this GIF https://imgur.com/8yhqocI
GBL's spatial search feature should apply two boosts when searching via the map (bbox param):
In the B1G Geoportal, despite the Solr query including a boost query "bq"=>["locn_geometry:\"IsWithin...
we're not seeing the "IsWithin" boost applied in the Solr debugQuery explain scoring algorithm results.
However, if I change the field used here from locn_geometry (location_geo3d type) to solr_bboxtype (bbox type) the bq boost is added to the result relevancy score and detailed in the Solr debugQuery explain scoring algorithm output.
10000.0 = ConstantScore(+(+solr_bboxtype__xdl:F +(+solr_bboxtype__minX:[-95.350342 TO 1.7976931348623157E308] +solr_bboxtype__maxX:[-1.7976931348623157E308 TO -91.790771])) +(+solr_bboxtype__minY:[44.582643 TO 1.7976931348623157E308] +solr_bboxtype__maxY:[-1.7976931348623157E308 TO 46.278631]))^10000.0
Something about the location_geo3d field type and our solr query doesn't work. We'll need to use a bbox type field here instead.
Expected behavior:
What happens on BTAA Geoportal: