[
https://issues.apache.org/jira/browse/SOLR-11859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16327676#comment-16327676
]
Jaap de Jong commented on SOLR-11859:
-------------------------------------
Hi Hoss, thank you for your comment. I actually didn't think about it this way,
but I am indeed using PHP Solarium to push the data to SOLR. I'm using a "set"
modifier there, like this:
$update = $solrClient->createUpdate();
$document = $update->createDocument();
$document->setField('s_description', $source->description, null, 'set');
//etc.
$update->addDocument($document);
$solrClient->update($update);
I'm using the same code when doing partial atomic updates, so my initial insert
might actually be pushed to solr in "atomic update style" meaning that it would
need different code on my side. I'll test further with this a.s.a.p. Thank you!
> CloneFieldUpdateProcessorFactory should not add {set=} to content when cloned
> to multivalued field
> --------------------------------------------------------------------------------------------------
>
> Key: SOLR-11859
> URL: https://issues.apache.org/jira/browse/SOLR-11859
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: UpdateRequestProcessors
> Affects Versions: 7.2
> Reporter: Jaap de Jong
> Priority: Minor
>
> I'm using the CloneFieldUpdateProcessorFactory to copy content from all
> string fields _except some predefined fields_ to a multivalued "text_final"
> field. This seems to work, however each value value is prepended with
> "\{set=" and appended with "}".
> Expected result
> Just clone all the original values into the multivalued field +without
> "\{set=}".+
> In my schema this field is defined as:
> {{<field name="text_final" type="text_nl" indexed="true" stored="true"
> multiValued="true"/>}}
> The fieldType is defined as:
> {{<fieldType name="text_nl" class="solr.TextField"
> positionIncrementGap="100">}}
> {{<analyzer>}}
> {{<charFilter class="solr.PatternReplaceCharFilterFactory" pattern='>'
> replacement=' ' />}}
> {{<tokenizer class="solr.StandardTokenizerFactory"/>}}
> {{<filter class="solr.LowerCaseFilterFactory"/>}}
> {{<filter class="solr.StopFilterFactory" ignoreCase="true"
> words="lang/stopwords_nl.txt"}}
> {{format="snowball"/>}}
> {{<filter class="solr.HunspellStemFilterFactory"}}
> {{dictionary="lang/nederlands/nl_NL.dic"}}
> {{affix="lang/nederlands/nl_NL.aff"}}
> {{ignoreCase="true"/>}}
> {{</analyzer>}}
> {{</fieldType>}}
> In my updateRequestProcessorChain the processor is defined as:
> {{<processor class="solr.CloneFieldUpdateProcessorFactory">}}
> {{<lst name="source">}}
> {{<str name="fieldRegex">s_.*</str>}}
> {{<lst name="exclude">}}
> {{<str name="fieldName">s_description</str>}}
> {{<str name="fieldName">s_image_link</str>}}
> {{<str name="fieldName">s_link</str>}}
> {{</lst>}}
> {{</lst>}}
> {{<str name="dest">text_final</str>}}
> {{</processor>}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]