You are here

README.txt in Search API Location 8

Same filename and directory in other branches
  1. 7.2 README.txt
CONTENTS OF THIS FILE
---------------------
 * Introduction
 * Requirements
 * Installation
 * Configuration
 * Developers

INTRODUCTION
------------
This module adds support for indexing location values provided by the geofield
module and subsequently filtering and/or sorting on them, provided the service
class supports this.

The module adds two new data types, Latitude/longitude and Spatial Recursive
Prefix Tree to the Fields form of Search API indexes. You can use these to index
the LatLong Pair property of fields of type geofield. To make real use of this
module, you will need to install additional sub-modules. Three of them are
included in this project:

[1] search_api_location_views
[2] search_api_location_geocoder
[3] search_api_location_facets

Please refer to their own README.txt files for details.

REQUIREMENTS
------------
For this module to have any effect, You need to enable search_api module. Keep
in mind the backend service class of the search_api has to support those data
type as well. Currently, only the Search API Solr module [1] is known to support
this feature.

[1] http://drupal.org/project/search_api_solr

INSTALLATION
------------
Install as you would normally install a contributed Drupal module. For further
information, see [1]:

[1] https://www.drupal.org/docs/8/extending-drupal-8/installing-modules

CONFIGURATION
-------------
After enabling search_api_location go to
   /admin/config/search/search-api/index/YOUR_INDEX_NAME/fields

Click on 'add fields' and select the geofield which you want to index.
Note the geofield must have stored a lat/lon pair value.
Then select type as Latitude/longitude to work with search_api_location_views
and/or Recursive Prefix Tree to work with fcets_map_widget.

DEVELOPERS
----------
This module provides two data_type plugins for search_api i.e LocationDataType
and RptDataType. By supporting those data type with your service class,
you indicate that you can index the location data type in a useful manner.
The LocationDataType is defined as a latitude and longitude, in decimal degrees,
separated by a comma, and has string format.
E.g., Dries place of birth would be represented as: 51.16831,4.394287 .

Similarly RptDataType is defined as a latitude and longitude without comma and
a space in between latitude and Longitude.
E,g, Dries place of birth would be represented as: 51.16831 4.394287

The modules also provides two location input plugin named as Raw and Map to
allow your site users to enter the location in various format.

File

README.txt
View source
  1. CONTENTS OF THIS FILE
  2. ---------------------
  3. * Introduction
  4. * Requirements
  5. * Installation
  6. * Configuration
  7. * Developers
  8. INTRODUCTION
  9. ------------
  10. This module adds support for indexing location values provided by the geofield
  11. module and subsequently filtering and/or sorting on them, provided the service
  12. class supports this.
  13. The module adds two new data types, Latitude/longitude and Spatial Recursive
  14. Prefix Tree to the Fields form of Search API indexes. You can use these to index
  15. the LatLong Pair property of fields of type geofield. To make real use of this
  16. module, you will need to install additional sub-modules. Three of them are
  17. included in this project:
  18. [1] search_api_location_views
  19. [2] search_api_location_geocoder
  20. [3] search_api_location_facets
  21. Please refer to their own README.txt files for details.
  22. REQUIREMENTS
  23. ------------
  24. For this module to have any effect, You need to enable search_api module. Keep
  25. in mind the backend service class of the search_api has to support those data
  26. type as well. Currently, only the Search API Solr module [1] is known to support
  27. this feature.
  28. [1] http://drupal.org/project/search_api_solr
  29. INSTALLATION
  30. ------------
  31. Install as you would normally install a contributed Drupal module. For further
  32. information, see [1]:
  33. [1] https://www.drupal.org/docs/8/extending-drupal-8/installing-modules
  34. CONFIGURATION
  35. -------------
  36. After enabling search_api_location go to
  37. /admin/config/search/search-api/index/YOUR_INDEX_NAME/fields
  38. Click on 'add fields' and select the geofield which you want to index.
  39. Note the geofield must have stored a lat/lon pair value.
  40. Then select type as Latitude/longitude to work with search_api_location_views
  41. and/or Recursive Prefix Tree to work with fcets_map_widget.
  42. DEVELOPERS
  43. ----------
  44. This module provides two data_type plugins for search_api i.e LocationDataType
  45. and RptDataType. By supporting those data type with your service class,
  46. you indicate that you can index the location data type in a useful manner.
  47. The LocationDataType is defined as a latitude and longitude, in decimal degrees,
  48. separated by a comma, and has string format.
  49. E.g., Dries place of birth would be represented as: 51.16831,4.394287 .
  50. Similarly RptDataType is defined as a latitude and longitude without comma and
  51. a space in between latitude and Longitude.
  52. E,g, Dries place of birth would be represented as: 51.16831 4.394287
  53. The modules also provides two location input plugin named as Raw and Map to
  54. allow your site users to enter the location in various format.