Searching on widget fails
- Dominant language
- XSLT
- Stars
- 136
- Forks
- 207
- PR merge metrics
- No merged PRs in 30d
Description
We want to include this great extension into our website, but searching with a bounding box on the widget returns no results even if the search area completely contains the dataset extent area.
This is an example of a search over all of Norway returning no results even though a dataset lies just outside the coast:


Following the docs, we have selected the solr backend search by writing
`ckanext.spatial.search_backend = solr`
in ckan's configuration file (called `production.ini`)
and updated the Solr schema with
```
```
When rebuilding the indexing with
`ckan-paster --plugin=ckan search-index rebuild --config=/etc/ckan/production.ini `
the debug messages report
```
DEBUG [ckanext.spatial.plugin] Setting up the spatial model
2019-04-09 09:05:12,801 DEBUG [ckanext.spatial.model.package_extent] Spatial tables defined in memory
2019-04-09 09:05:12,809 DEBUG [ckanext.spatial.model.package_extent] Spatial tables already exist
2019-04-09 09:05:13,098 DEBUG [ckanext.spatial.plugin] Setting up the spatial model
2019-04-09 09:05:13,105 DEBUG [ckanext.spatial.model.package_extent] Spatial tables already exist
```
Any help would be appreciated.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the widget bounding-box search with ckanext.spatial.search_backend set to solr, then run the documented ckan-paster search-index rebuild command and inspect the reported indexing behavior. Check the Solr schema fields listed in the issue and the spatial search entry point; done means a bounding box containing the dataset extent returns that dataset.
Written by the indexing model from the issue text.
Assessment
- Domain
- search
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100