ckanext-spatial icon indicating copy to clipboard operation
ckanext-spatial copied to clipboard

Geospatial search is not working

Open abdelrahman146 opened this issue 6 years ago • 2 comments

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 <fields> block

<field name="bbox_area" type="float" indexed="true" stored="true" />
<field name="maxx" type="float" indexed="true" stored="true" />
<field name="maxy" type="float" indexed="true" stored="true" />
<field name="minx" type="float" indexed="true" stored="true" />
<field name="miny" type="float" indexed="true" stored="true" />

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

picture

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

abdelrahman146 avatar Jul 02 '19 09:07 abdelrahman146

It usually happens when the extra field are not created properly. Check if they are really part of the schema using the solr web interface.

frafra avatar Oct 31 '19 08:10 frafra

Seconding this issue, I have the extra fields in my solr schema, but the spatial search is still returning zero results. Not sure where to go from here. Using solr 6.6.6 and ckan 2.9.5

ctrepka avatar Jul 22 '22 16:07 ctrepka