Drupal is a registered trademark of Dries Buytaert
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)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

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
1 month ago
Release cadence
Stability
0% stable

Releases

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