|
90 | 90 |
|
91 | 91 | <group id="indices_settings" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1"> |
92 | 92 | <label>Indices Settings</label> |
93 | | - <field id="alias" translate="label" type="text" sortOrder="57" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 93 | + <field id="alias" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
94 | 94 | <label>Indices Alias Name</label> |
95 | 95 | </field> |
96 | | - <field id="indices_pattern" translate="label" type="text" sortOrder="58" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 96 | + <field id="indices_pattern" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
97 | 97 | <label>Indices Name Pattern</label> |
98 | 98 | </field> |
99 | | - <field id="number_of_shards" translate="label" type="text" sortOrder="59" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 99 | + <field id="number_of_shards" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
100 | 100 | <label>Default Number of Shards per Index</label> |
101 | 101 | <frontend_class>validate-number</frontend_class> |
102 | 102 | </field> |
103 | | - <field id="number_of_replicas" translate="label" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 103 | + <field id="number_of_replicas" translate="label" type="text" sortOrder="40" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
104 | 104 | <label>Default Number of Replicas per Index</label> |
105 | 105 | <frontend_class>validate-number</frontend_class> |
106 | 106 | </field> |
107 | | - <field id="custom_number_of_shards_and_replicas_per_index" translate="label" sortOrder="61" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 107 | + <field id="custom_number_of_shards_and_replicas_per_index" translate="label" sortOrder="50" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
108 | 108 | <label>Custom settings per Index</label> |
109 | 109 | <frontend_model>Smile\ElasticsuiteCore\Block\Adminhtml\Form\Field\IndicesSettings\DynamicField</frontend_model> |
110 | 110 | <backend_model>Magento\Config\Model\Config\Backend\Serialized\ArraySerialized</backend_model> |
111 | 111 | </field> |
| 112 | + <field id="ghost_timeout" translate="label comment" type="text" sortOrder="60" showInDefault="1" showInWebsite="0" showInStore="0" canRestore="1"> |
| 113 | + <label>Time for an index to be considered Ghost (in seconds)</label> |
| 114 | + <comment><![CDATA[Elasticsuite derelict indices resulting from a failed full reindex are considered ghost after this amount of time (in seconds) has elapsed since their creation. You can reduce this amount of time to speed up ghost indices cleanup, but take care to add a safety on top of the maximum reindexing duration of the more complex index of your platform (usually a catalog_product/product search index). Defaults to 172,800 seconds (2 days), minimum value: 3600 (1 hour).]]></comment> |
| 115 | + <validate>integer validate-greater-than-zero validate-number-range number-range-3600-172800</validate> |
| 116 | + </field> |
112 | 117 | </group> |
113 | 118 |
|
114 | 119 | </section> |
|
0 commit comments