ckan / ckan/ckanext-spatial

Geospatial search is not working

Open
#224 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
XSLT
Stars
136
Forks
207
PR merge metrics
No merged PRs in 30d

Description

Hello,

I'm using ckan 2.8.2, and I have installed ckanext-spatial following the instructions in the ckan documentation.

I have selected the search backend to be solr by writing the following line in the production.ini
```ckanext.spatial.search_backend = solr```

and updated the solr xml schema by putting the following lines inside the `` block
```

```

and ran this command to rebuild the search-index.
ckan-paster --plugin=ckan search-index rebuild --config=/etc/ckan/production.ini

![picture](https://i.gyazo.com/d3d63391e4f148a12fbd16bce665e332.png)

However, when I use the geospatial search, it returns no results even though some datasets have the "spatial" extra field in the same area.

![picture](https://i.gyazo.com/7ca445348cb8a769f8a4cb9d396e2baf.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

Review the ckanext.spatial.search_backend setting in production.ini and the added fields in the Solr XML schema. Re-run the documented ckan-paster search-index rebuild command and verify the indexed spatial values against a geospatial query. Done means datasets with spatial extents in the queried area are returned.

Written by the indexing model from the issue text.

Assessment

Tech stack
xml
Domain
search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.