You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Markus Jelsma (JIRA)" <ji...@apache.org> on 2010/12/09 14:01:04 UTC

[jira] Created: (SOLR-2278) PHPSerialized fails with Solr spatial

PHPSerialized fails with Solr spatial
-------------------------------------

                 Key: SOLR-2278
                 URL: https://issues.apache.org/jira/browse/SOLR-2278
             Project: Solr
          Issue Type: Bug
          Components: Response Writers
    Affects Versions: 1.4.1
            Reporter: Markus Jelsma


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org