You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2013/06/22 03:11:20 UTC
[jira] [Updated] (SOLR-4892) Add field update processors to
parse/convert String-typed fields to Date, Number, and Boolean
[ https://issues.apache.org/jira/browse/SOLR-4892?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Rowe updated SOLR-4892:
-----------------------------
Attachment: SOLR-4892.patch
Patch, I think it's ready to go.
I've added Joda-time 2.2 as a solr-core dependency to handle the configurable date parsing.
I'd appreciate review.
> Add field update processors to parse/convert String-typed fields to Date, Number, and Boolean
> ---------------------------------------------------------------------------------------------
>
> Key: SOLR-4892
> URL: https://issues.apache.org/jira/browse/SOLR-4892
> Project: Solr
> Issue Type: New Feature
> Components: update
> Reporter: Steve Rowe
> Assignee: Steve Rowe
> Priority: Minor
> Attachments: SOLR-4892.patch
>
>
> Add {{FieldMutatingUpdateProcessorFactory}} subclasses {{ParseFooUpdateProcessorFactory}}, where {{Foo}} includes {{Date}}, {{Double}}, {{Long}}, and {{Boolean}}.
> These factories will have a default selector that matches all fields that either don’t match any schema field, or are in the schema with the corresponding {{typeClass}}. They can optionally support a list of multiple format specifiers. If they see a value that is not a CharSequence, or can't parse the value using a configured format, they ignore it and leave it as is.
> For multi-valued fields, these processors will not convert any values unless all are first successfully parsed. Ordering the processors [Boolean, Long, Double, Date] will allow e.g. values [2, 5, 8.6] to be left alone by the Boolean and Long processors, but then converted by the Double processor.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org