Download & Extend

Search API Location

The Search API spatial module (7.x-2.x branch) 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 latitude/longitude field (currently geofield is supported, location fields probably work, but 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 version of search_api, search_api_solr and search_api_page

Installation and configuration

  • 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 with has Solr as server
    • on the 'fields' tab: check the field containing the latlng value and select the 'latitude/longitude' type.
      If you don't see the field, check the 'add related field' at the bottom of the page (see screenshot 1 and screenshot 2)
    • on the 'workflow' tab: enable the spatial search processor and select the field it has to run on (see screenhot 3 and screenshot 4)
    • reindex the index

For a Search API page

  • 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 :)
     

For a Search API view
Documentation has to be written.

Planned features

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

Versions

7.x-1.x

Integration of the Location module and Search API.

You are welcome to see the demo on http://ygerasimov.com/geo

Features:
1. Index location data to Solr
2. Spatial search by radius

Please follow README installation guidelines to compile apachesolr with geospatial functionality. Or you can download ready apachesolr from demo site.

Developed by Dmitry Olaresko and Anton Paschenko

7.x-2.x (currently maintained version)

See explanation above.
Sponsored by Jeugdwerknet vzw

Downloads

Version Downloads Date Links
7.x-2.x-dev tar.gz (20.8 KB) | zip (24.43 KB) 2013-May-25 Notes

Project Information


Maintainers for Search API Location

  • mollux - 2 commits
    last: 1 year ago, first: 1 year ago
  • ygerasimov - 3 commits
    last: 1 year ago, first: 1 year ago

Issues for Search API Location

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants
nobody click here