Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
1.4.1
-
None
-
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=
auto&wt=php
Attachments
Issue Links
- relates to
-
SOLR-2307 PHPSerialized fails with sharded queries
- Closed