You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "David Smiley (JIRA)" <ji...@apache.org> on 2016/04/23 02:16:12 UTC

[jira] [Closed] (SOLR-8017) solr.PointType can't deal with coordination in format like (0.9504547, 1.0, 1.0890503)

     [ https://issues.apache.org/jira/browse/SOLR-8017?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Smiley closed SOLR-8017.
------------------------------
    Resolution: Won't Fix

Peter, this is as-designed.  PointType (and other spatial field types) accept the data in either one format, or sometimes maybe another specific one or two as well.  It is quite common to need to do some little bits of data manipulation (sometimes a lot, sometimes a little) when getting data from whatever format it's in, into Solr.  Adding an URP is one way to handle this, or deal with it before handing it to Solr.  If you go the URP route, see {{RegexReplaceProcessorFactory}} which should handle your case easily.

> solr.PointType can't deal with coordination in format like (0.9504547, 1.0, 1.0890503)
> --------------------------------------------------------------------------------------
>
>                 Key: SOLR-8017
>                 URL: https://issues.apache.org/jira/browse/SOLR-8017
>             Project: Solr
>          Issue Type: Improvement
>    Affects Versions: 5.2
>            Reporter: wangshanshan
>            Priority: Minor
>
> In jpg picture files there will be some fields like media_white_point, media_black_point, which in format like (0.9504547, 1.0, 1.0890503).
> But solr.PointType can't deal with the "(", it just splis by comma and let Double.parse  deal with a string like "(0.9504547".
> In this case, a NumberFormatException will be raised.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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