This page should only be applied if the script asks you to pass the manual migration code.CMS.update-search-model-criteria-syntax
The syntax of search model criteria has been modified:
<criteria [field|system]-ref="title" />
becomes
<item ref="title">
This change was made automatically. However, you may find that the following line appears twice in the same set of criteria:
<item ref="*">
Most of these duplicates were automatically removed, but some may not have been detected by the automatic migration, for example if a criterion was overloaded between the 2 occurrences.
Manual action: if this line appears twice in the same set of criteria (simple-search-cirteria, facet or advanced-criteria), delete one of the 2 lines.
Some criteria do not reference attributes or properties, but use criterion definition classes. The old syntax is as follows:
<criteria custom-ref="title"> <class name="org.ametys.xxx.StaticCriterionDefinitionClass" /> [Some other configuration] </criteria>
and here's the news:
<item name="title" class="org.ametys.xxx.StaticCriterionDefinitionClass" /> [Some other configuration] </item>
The change from criteria to item, and from custom-ref to name is automatic.
Manual action: the class remains to be moved manually, as an item attribute