ckan / ckanext-spatial

Geospatial extension for CKAN
http://docs.ckan.org/projects/ckanext-spatial
126 stars 193 forks source link

Geospatial search is not working #224

Open abdelrahman146 opened 5 years ago

abdelrahman146 commented 5 years ago

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

frafra commented 4 years ago

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.

ctrepka commented 2 years ago

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