Hi, I am trying to add a new field to my schema to add the number of items of a multivalued field. I am using solr 4.11
These are my fields on *schema.xml* <field name="EmailListS" type="textWildcardSearch" indexed="true" multiValued="true" stored="true" /> <field name="EmailListCountD" type="int" indexed="true" stored="true" /> Here is the update done to my *solrconfig.xml*. I created an updateRequestProcessorChain and add it to the update handler <updateHandler class="solr.DirectUpdateHandler2"> <lst name="defaults"> <str name="update.chain">countfields</str> </lst> </updateHandler> <updateRequestProcessorChain name="countfields"> <processor class="solr.CloneFieldUpdateProcessorFactory"> <str name="source">EmailListS</str> <str name="dest">EmailListCountD</str> </processor> <processor class="solr.CountFieldValuesUpdateProcessorFactory"> <str name="fieldName">EmailListCountD</str> </processor> <processor class="solr.DefaultValueUpdateProcessorFactory"> <str name="fieldName">EmailListCountD</str> <int name="value">0</int> </processor> <processor class="solr.LogUpdateProcessorFactory" /> <processor class="solr.RunUpdateProcessorFactory" /> </updateRequestProcessorChain> Am I doing somwthing wrong here? Thanks for your help. -- View this message in context: http://lucene.472066.n3.nabble.com/Count-multivalued-field-issue-tp4248878.html Sent from the Solr - User mailing list archive at Nabble.com.