vecnet / dl-discovery

Map based discovery interface for digital library records
Other
4 stars 3 forks source link

search by map area doesnt? limit results #49

Closed nkmeyers closed 9 years ago

nkmeyers commented 9 years ago

Should search by map are limit results? it doesn't seem to ? Just seems to only display hits on that part of map rather than filter or inform the search & number of results?

For example if I search on term bendiocarb w/only americas displayed and click search by map I still get 127 results even though only 8 are from South america?

how should non-locational records be filtered (included in results set) & counted when searching by map?

image

stevenvandervalk commented 9 years ago

Yep definitely buggy. In local and remote testing prior, the map search filtered results as you would expect. Will debug.

stevenvandervalk commented 9 years ago

@dbrower This is confusing. Rails + Solr is no longer limiting searches at all when we pass them a bbox param that is formatted how geoblacklight want. Did a relevant SOLR change happen that I missed somewhere? because this works as is in previous commits and tagged versions.

dbrower commented 9 years ago

Possibilities are 1) there is an error in the solr schema, 2) geoblacklight changed how it relates to the bbox data and how it queries solr...I know that they were deprecating the bbox field in favor of something else.

stevenvandervalk commented 9 years ago

Ok. I've written the question to the geobl group and hopefully my attempt at outreach is more successful this time. I notice Earthworks now has https://github.com/sul-dlss/earthworks/blob/master/app/controllers/catalog_controller.rb#L34 that we don't but following their threads didn't reveal anything.

dbrower commented 9 years ago

It looks like the setting GEOMETRY_FIELD is not set.

stevenvandervalk commented 9 years ago

Works here as well. Good to know that settings files don't inherit!