Drupal is a registered trademark of Dries Buytaert
cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)! drupal 11.3.8 Update released for Drupal core (11.3.8)! drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)!

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.

Activity

Total releases
1
First release
Feb 2026
Latest release
3 months ago
Release cadence
Stability
0% stable

Releases

Version Type Release date
2.0.x-dev Dev Feb 25, 2026