Skip to content

Commit 841872c

Browse files
committed
MC-23068: Change in-product doc url to devdocs
- Move "Minimum Terms to Match" down to search configuration section - Change documentation URL for "Minimum Terms to Match"
1 parent 22ffe07 commit 841872c

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

app/code/Magento/Elasticsearch/etc/adminhtml/system.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,21 @@
5555
<field id="engine">elasticsearch</field>
5656
</depends>
5757
</field>
58-
<field id="elasticsearch_minimum_should_match" translate="label" type="text" sortOrder="68" showInDefault="1" showInWebsite="0" showInStore="0">
59-
<label>Minimum Terms to Match</label>
58+
<field id="elasticsearch_test_connect_wizard" translate="button_label" sortOrder="68" showInDefault="1" showInWebsite="0" showInStore="0">
59+
<label/>
60+
<button_label>Test Connection</button_label>
61+
<frontend_model>Magento\Elasticsearch\Block\Adminhtml\System\Config\TestConnection</frontend_model>
6062
<depends>
6163
<field id="engine">elasticsearch</field>
6264
</depends>
63-
<comment><![CDATA[See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html">here</a> for possible values.]]></comment>
64-
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
6565
</field>
66-
<field id="elasticsearch_test_connect_wizard" translate="button_label" sortOrder="69" showInDefault="1" showInWebsite="0" showInStore="0">
67-
<label/>
68-
<button_label>Test Connection</button_label>
69-
<frontend_model>Magento\Elasticsearch\Block\Adminhtml\System\Config\TestConnection</frontend_model>
66+
<field id="elasticsearch_minimum_should_match" translate="label" type="text" sortOrder="93" showInDefault="1" showInWebsite="0" showInStore="0">
67+
<label>Minimum Terms to Match</label>
7068
<depends>
7169
<field id="engine">elasticsearch</field>
7270
</depends>
71+
<comment><![CDATA[<a href="https://docs.magento.com/m2/ce/user_guide/catalog/search-elasticsearch.html">Learn more</a> about valid syntax.]]></comment>
72+
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
7373
</field>
7474
<!-- Elasticsearch 5.0+ -->
7575
<field id="elasticsearch5_server_hostname" translate="label" type="text" sortOrder="61" showInDefault="1" showInWebsite="0" showInStore="0">
@@ -117,21 +117,21 @@
117117
<field id="engine">elasticsearch5</field>
118118
</depends>
119119
</field>
120-
<field id="elasticsearch5_minimum_should_match" translate="label" type="text" sortOrder="68" showInDefault="1" showInWebsite="0" showInStore="0">
121-
<label>Minimum Terms to Match</label>
120+
<field id="elasticsearch5_test_connect_wizard" translate="button_label" sortOrder="68" showInDefault="1" showInWebsite="0" showInStore="0">
121+
<label/>
122+
<button_label>Test Connection</button_label>
123+
<frontend_model>Magento\Elasticsearch\Block\Adminhtml\System\Config\Elasticsearch5\TestConnection</frontend_model>
122124
<depends>
123125
<field id="engine">elasticsearch5</field>
124126
</depends>
125-
<comment><![CDATA[See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html">here</a> for possible values.]]></comment>
126-
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
127127
</field>
128-
<field id="elasticsearch5_test_connect_wizard" translate="button_label" sortOrder="69" showInDefault="1" showInWebsite="0" showInStore="0">
129-
<label/>
130-
<button_label>Test Connection</button_label>
131-
<frontend_model>Magento\Elasticsearch\Block\Adminhtml\System\Config\Elasticsearch5\TestConnection</frontend_model>
128+
<field id="elasticsearch5_minimum_should_match" translate="label" type="text" sortOrder="93" showInDefault="1" showInWebsite="0" showInStore="0">
129+
<label>Minimum Terms to Match</label>
132130
<depends>
133131
<field id="engine">elasticsearch5</field>
134132
</depends>
133+
<comment><![CDATA[<a href="https://docs.magento.com/m2/ce/user_guide/catalog/search-elasticsearch.html">Learn more</a> about valid syntax.]]></comment>
134+
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
135135
</field>
136136
</group>
137137
</section>

app/code/Magento/Elasticsearch6/etc/adminhtml/system.xml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -70,24 +70,23 @@
7070
</depends>
7171
</field>
7272

73-
<field id="elasticsearch6_minimum_should_match" translate="label" type="text" sortOrder="78" showInDefault="1"
73+
<field id="elasticsearch6_test_connect_wizard" translate="button_label" sortOrder="78" showInDefault="1"
7474
showInWebsite="0" showInStore="0">
75-
<label>Minimum Terms to Match</label>
75+
<label/>
76+
<button_label>Test Connection</button_label>
77+
<frontend_model>Magento\Elasticsearch6\Block\Adminhtml\System\Config\TestConnection</frontend_model>
7678
<depends>
7779
<field id="engine">elasticsearch6</field>
7880
</depends>
79-
<comment><![CDATA[See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-minimum-should-match.html">here</a> for possible values.]]></comment>
80-
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
8181
</field>
82-
83-
<field id="elasticsearch6_test_connect_wizard" translate="button_label" sortOrder="79" showInDefault="1"
82+
<field id="elasticsearch6_minimum_should_match" translate="label" type="text" sortOrder="93" showInDefault="1"
8483
showInWebsite="0" showInStore="0">
85-
<label/>
86-
<button_label>Test Connection</button_label>
87-
<frontend_model>Magento\Elasticsearch6\Block\Adminhtml\System\Config\TestConnection</frontend_model>
84+
<label>Minimum Terms to Match</label>
8885
<depends>
8986
<field id="engine">elasticsearch6</field>
9087
</depends>
88+
<comment><![CDATA[<a href="https://docs.magento.com/m2/ce/user_guide/catalog/search-elasticsearch.html">Learn more</a> about valid syntax.]]></comment>
89+
<backend_model>Magento\Elasticsearch\Model\Config\Backend\MinimumShouldMatch</backend_model>
9190
</field>
9291
</group>
9392
</section>

0 commit comments

Comments
 (0)