You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Rohit Kanchan (JIRA)" <ji...@apache.org> on 2015/03/11 19:52:38 UTC
[jira] [Created] (SOLR-7235) TruncateFieldUpdateProcessorFactory is
not truncating for update commands
Rohit Kanchan created SOLR-7235:
-----------------------------------
Summary: TruncateFieldUpdateProcessorFactory is not truncating for update commands
Key: SOLR-7235
URL: https://issues.apache.org/jira/browse/SOLR-7235
Project: Solr
Issue Type: Bug
Affects Versions: 4.10.2
Reporter: Rohit Kanchan
I tried using solr.TruncateFieldUpdateProcessorFactory in my local environment and tried to truncate one string to 5000 character but it did not work because my php client is using solarium as solr client and it sends data as a map, for example my field name is xyz and solarium is sending its value as "set:<required value>" where "set" is the key and "<require value>" is the value of map. According to this factory code it checks if this "xyz" field's value is a CharSequence or not, if it is then it truncates that string. But because it is not a char sequence then it is not even trying truncating. To make it work in my instance I had to override solr.TruncateFieldUpdateProcessorFactory.
--
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