Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Usage Milestone: Google Analytics Module google_analytics crossed 1,000 active installs. Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: GraphQL Compose Codegen 1.1.2 Minor update available for module graphql_compose_codegen (1.1.2). Release: Mapy.com 1.1.3 Minor update available for module mapycom (1.1.3). Release: Ckeditor5 entity browser 3.0.3 Minor update available for module ckeditor5_entity_browser (3.0.3). Release: Ckeditor5 entity browser 3.0.1 Minor update available for module ckeditor5_entity_browser (3.0.1). Release: Ckeditor5 entity browser 3.0.2 Minor update available for module ckeditor5_entity_browser (3.0.2). Release: Teamleader Integration 4.0.2 Minor update available for module teamleader (4.0.2). Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

This module extends Search API Solr to index and query geographical shapes beyond simple latitude/longitude points. It allows searching for points contained within indexed polygons and modifies Solr's schema for spatial data.

This module is based on search_api_location feature request to allow indexing
polygons -> https://www.drupal.org/project/search_api_location/issues/3113266 So may change if patch is accepted. But meanwhile...

These are the features included in module:

  • Override of the rpt datatype that restricts the solr indexing to lat,lon
    to allow indexing shapes. There's a subscription to datatypes event
    dispatched by search_api to overwrite the RPT datatype Class with the
    class provided by this module that is not filtering to lat,lon pair
    and allow more shapes.

  • It provides a filter plugin for views. To search if user input point is
    being contained by the indexed polygons. (more predicates may be done, but
    not by now, look at possibilities in https://cwiki.apache.org/confluence/display/solr/SolrAdaptersForLuceneSpatial4#SolrAdaptersForLuceneSpatial4-SpatialPredicates)

  • Also it adds the configuration to do spatial queries to the schema.xml
    configuration that generates search_api_solr. Replacing:

      <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType" geo="true" distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers"/>
    

    with

      <fieldType name="location_rpt" class="solr.SpatialRecursivePrefixTreeFieldType"
                spatialContextFactory="org.locationtech.spatial4j.context.jts.JtsSpatialContextFactory"
            autoIndex="true"
            validationRule="repairBuffer0"
            distErrPct="0.025" maxDistErr="0.001" distanceUnits="kilometers" />
    
  • TODO: Tests: With this module we can see how alter a search api query with
    jts_solr_queries_search_api_solr_converted_query_alter that modifies the select
    of a given search. It's the behavior that must be in the tests that must
    be done, search if there are any polygons indexed in a specified index that
    contains a given point, in code 'events' index is used.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Feb 2026
Latest release
6 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Slowing

Releases

Version Type Core Release date
2.0.x-dev Dev 9–11 Feb 25, 2026