[ 
https://issues.apache.org/jira/browse/SOLR-8017?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15256432#comment-15256432
 ] 

Peter Blokland commented on SOLR-8017:
--------------------------------------

to add : your solution point me to using something like this :

<processor class="solr.RegexReplaceProcessorFactory">
   <str name="fieldName">media_black_point</str>
   <str name="fieldName">media_white_point</str>
   <str name="pattern">^\((.*)\)$</str>
   <str name="replacement">$1</str>
   <bool name="literalReplacement">false</bool>
 </processor>

which, while it works, is not very suited for schemaless mode, because I need 
to know the fieldName(s) in advance...

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to