Experimental project

This is a sandbox project, which contains experimental code for developer use only.

This module was merged into the Search API Location module, so this sandbox is obsolete. Use the 7.x-2.x branch of the Search API Location module instead.

The Search API spatial module adds the possibility of location based searching to the Search API module.
Currently only Apache Solr is supported as server.
You can find a demo on http://spatial.mollux.be

Requirements

  • a content type/entity with a latlng field (currently geofield is supported, location fields probably work, bu I haven't tested it yet)
  • Apache Solr server 3.1+ (I only tested with 3.3 en 3.4, but spatial search is included since 3.1)
  • Latest dev of search_api, search_api_solr and search_api_page

Installation

  • put the module in sites/all/modules folder.
  • apply search_api_solr-compatibility-with-search_api_spatial.patch to the search_api_solr module.
  • update the schema.xml of solr with the version from the module
  • enable the module
  • add/modify a Search API index
    • add a latitude/longitude field on the 'fields' tab of the index. The field must return a latlng pair separated with a comma
    • enable the spatial search processor and select the field it has to run on on the 'workflow' tab of the index
  • add a new search page and select the index with the enabled spatial search processor
    • select the default settings (default point, min/max radius, stepping and unit of measurement). The slider doesn't change automatically to the new values (yet). So you have to edit the search page twice if you want to select a radius that fits the min/max radius, stepping and unit of measurement)
  • go to your search page a search with spatial abilities :)

Features to be commited

  • support for Openlayers maps
  • show the results on a map
  • show the distance to the search point

this module is sponsored by Jeugdwerknet vzw

Project information

  • caution Unsupported
    Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects
  • caution No further development
    No longer developed by its maintainers.
  • Created by mollux on , updated