Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
search_api_location
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
search_api_location
Commits
050b53a6
Commit
050b53a6
authored
2 years ago
by
Dinesh Kumar Bollu
Committed by
Jeroen Tubex
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3340554
by JeroenT, dineshkumarbollu, Rinku Jacob 13: README.txt to README.md
parent
2fe6ec62
No related branches found
No related tags found
1 merge request
!9
README.md file
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+57
-0
57 additions, 0 deletions
README.md
README.txt
+0
-67
0 additions, 67 deletions
README.txt
with
57 additions
and
67 deletions
README.md
0 → 100644
+
57
−
0
View file @
050b53a6
# Search API Location
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.
For a full description of the module, visit the
[
project page
](
https://www.drupal.org/project/search_api_location
)
.
To submit bug reports and feature suggestions, or track changes in the
[
issue queue
](
https://www.drupal.org/project/issues/search_api_location
)
.
## Table of contents
-
Requirements
-
Installation
-
Configuration
-
Maintainers
## 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. The
[
Search API Solr module
](
https://www.drupal.org/project/search_api_solr
)
module is known to fully support this feature.
[
Elasticsearch Connector
](
https://www.drupal.org/project/elasticsearch_connector
)
may work but needs additional patching and is not fully tested. See issue
[
#3116153
](
https://www.drupal.org/i/3116153
)
for more information.
## Installation
Install as you would normally install a contributed Drupal module. For further
information, see
[
Installing Drupal Modules
](
https://www.drupal.org/docs/extending-drupal/installing-drupal-modules
)
,
Ensure the Toolbar module is installed.
## Configuration
1.
After enabling search_api_location go to
/admin/config/search/search-api/index/YOUR_INDEX_NAME/fields
2.
Click on 'add fields' and select the geofield which you want to index.
3.
Note the geofield must have stored a lat/lon pair value.
4.
Then select type as Latitude/longitude to work with search_api_location_views
and/or Recursive Prefix Tree to work with fcets_map_widget.
## Maintainers
-
Thomas Seidl -
[
drunken monkey
](
https://www.drupal.org/u/drunken-monkey
)
-
Mattias Michaux -
[
mollux
](
https://www.drupal.org/u/mollux
)
-
Yuriy Gerasimov -
[
ygerasimov
](
https://www.drupal.org/u/ygerasimov
)
-
Nick Veenhof -
[
Nick_vh
](
https://www.drupal.org/u/nick_vh
)
-
Joris Vercammen -
[
borisson_
](
https://www.drupal.org/u/borisson_
)
-
Jeroen Tubex -
[
JeroenT
](
https://www.drupal.org/u/jeroent
)
This diff is collapsed.
Click to expand it.
README.txt
deleted
100644 → 0
+
0
−
67
View file @
2fe6ec62
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.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment