Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-2278

PHPSerialized fails with Solr spatial

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.4.1
    • Fix Version/s: None
    • Component/s: spatial
    • Labels:
      None

      Description

      Solr throws a java.lang.IllegalArgumentException: Map size must not be negative exception when using the PHP Serialized response writer with JTeam SolrSpatial plugin in front. At first it may seem a bug in the plugin but according to some posts in the mailing list thread ( http://lucene.472066.n3.nabble.com/Map-size-must-not-be-negative-with-spatial-results-php-serialized-td2039782.html ) it just might be a bug in Solr.

      The only way to reproduce the issue that i know of is using using LocalParams to set spatial parameters and having the spatial search component activated as last-components. If the query yields no results, the exception won't show up.

      <!-- Spatial search component -->
      <searchComponent name="geodistance" class="nl.jteam.search.solrext.spatial.GeoDistanceComponent">
      <defaults>
      <str name="distanceField">distance</str>
      </defaults>
      </searchComponent>

      <!-- Spatial query parser -->
      <queryParser name="spatial" class="nl.jteam.search.solrext.spatial.SpatialTierQueryParserPlugin" basedOn="dismax">
      <str name="corePoolSize">1</str>
      <str name="maxPoolSize">1</str>
      <str name="keepAlive">60</str>
      <str name="latField">ad_latitude</str>
      <str name="lngField">ad_longitude</str>
      <str name="tierPrefix">tier</str>
      </queryParser>

      In the request handler:
      <arr name="last-components">
      <str>geodistance</str>
      </arr>

      query:
      http://localhost:8983/solr/search?q=

      {!spatial%20lat=51.9562%20long=6.02606%20radius=432%20unit=km}

      auto&wt=php

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                markus17 Markus Jelsma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: