You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Jay (JIRA)" <ji...@apache.org> on 2015/05/05 18:51:59 UTC
[jira] [Created] (SOLR-7504) Atomic Update causes
solr.CountFieldValuesUpdateProcessorFactory to be wrong
Jay created SOLR-7504:
-------------------------
Summary: Atomic Update causes solr.CountFieldValuesUpdateProcessorFactory to be wrong
Key: SOLR-7504
URL: https://issues.apache.org/jira/browse/SOLR-7504
Project: Solr
Issue Type: Bug
Reporter: Jay
Fix For: 5.1, 4.10.4
Below is a snippet of my solrconfig.xml
{code}
<updateRequestProcessorChain name="custom-updates" default="true">
<processor class="solr.RemoveBlankFieldUpdateProcessorFactory">
<lst name="exclude">
<str name="fieldRegex">.*_count</str>
</lst>
</processor>
<processor class="solr.UUIDUpdateProcessorFactory">
<str name="fieldName">id</str>
</processor>
<!-- Allows you make counts for multivalued field-->
<processor class="solr.CloneFieldUpdateProcessorFactory">
<str name="source">researchpagekeycontentcategorynames</str>
<str name="dest">key_content_count</str>
</processor>
<processor class="solr.CountFieldValuesUpdateProcessorFactory">
<str name="fieldName">key_content_count</str>
</processor>
<processor class="solr.DefaultValueUpdateProcessorFactory">
<str name="fieldName">key_content_count</str>
<int name="value">0</int>
</processor>
{code}
Performing an Atomic Update like this causes that key_content_count to be one (1) when the expected value should be zero (0).
To my knowledge setting a value to null should zero out the count, correct?
{code}
curl -s 'http://localhost:9080/solr/ndr/update' -H 'Content-type:application/json' -d '[{"content_key":"ICS_100.RPT","researchpagekeycontentcategorynames":{"set":null}}]'
{code}
Thanks for looking into this.
--
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