Skip to content

Commit 7b0f034

Browse files
committed
[Analytics][Dashboard] Add more cleaner solution
1 parent b684595 commit 7b0f034

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/module-elasticsuite-analytics/view/adminhtml/layout/smile_elasticsuite_analytics_search_usage.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,15 @@
5050
</arguments>
5151
</block>
5252

53+
<block name="elasticsuite.analytics.search_usage.spellchecked_terms" class="Smile\ElasticsuiteAnalytics\Block\Adminhtml\Search\Usage\SearchTerms" template="Smile_ElasticsuiteAnalytics::search/usage/terms.phtml" after="elasticsuite.analytics.search_usage.no_result_terms">
54+
<arguments>
55+
<argument name="report" xsi:type="object">Smile\ElasticsuiteAnalytics\Model\Search\Usage\Terms\SpellcheckedTerms\Report</argument>
56+
<argument name="show_conversion_rate" xsi:type="boolean">true</argument>
57+
<argument name="title" xsi:type="string" translate="true">Spellchecked search terms</argument>
58+
<argument name="help" xsi:type="string" translate="true"><![CDATA[The terms listed below were those for which they were no exact results and only close matches were displayed.<br />If a term is a "popular mispelling" with not many results while you know the correct search term would return more products, you might want to add a rule in the <a href="https://github.com/Smile-SA/elasticsuite/wiki/ThesaurusAdministration" target="blank">Thesaurus</a>.]]></argument>
59+
</arguments>
60+
</block>
61+
5362
<block name="elasticsuite.analytics.search_usage.no_result_terms" class="Smile\ElasticsuiteAnalytics\Block\Adminhtml\Search\Usage\SearchTerms" template="Smile_ElasticsuiteAnalytics::search/usage/terms/no_results.phtml">
5463
<arguments>
5564
<argument name="report" xsi:type="object">Smile\ElasticsuiteAnalytics\Model\Search\Usage\Terms\NoResultTerms\Report</argument>
@@ -58,15 +67,6 @@
5867
<argument name="help" xsi:type="string" translate="true"><![CDATA[The terms listed below were those for which they were neither exact results nor close matches.<br />If you have nonetheless some related products, you probably should add a rule in the <a href="https://github.com/Smile-SA/elasticsuite/wiki/ThesaurusAdministration" target="blank">Thesaurus</a>.<br />For instance, if you have a lot of "running" related products and visitors are searching repeatly for "jogging" without any results, you should definitely add a <a href="https://github.com/Smile-SA/elasticsuite/wiki/ThesaurusAdministration#synonym" target="_blank">synonym</a> or <a href="https://github.com/Smile-SA/elasticsuite/wiki/ThesaurusAdministration#expansion" target="_blank">expansion</a> rule in the Thesaurus to associate the terms "running" and "jogging".]]></argument>
5968
</arguments>
6069
</block>
61-
62-
<block name="elasticsuite.analytics.search_usage.spellchecked_terms" class="Smile\ElasticsuiteAnalytics\Block\Adminhtml\Search\Usage\SearchTerms" template="Smile_ElasticsuiteAnalytics::search/usage/terms.phtml">
63-
<arguments>
64-
<argument name="report" xsi:type="object">Smile\ElasticsuiteAnalytics\Model\Search\Usage\Terms\SpellcheckedTerms\Report</argument>
65-
<argument name="show_conversion_rate" xsi:type="boolean">true</argument>
66-
<argument name="title" xsi:type="string" translate="true">Spellchecked search terms</argument>
67-
<argument name="help" xsi:type="string" translate="true"><![CDATA[The terms listed below were those for which they were no exact results and only close matches were displayed.<br />If a term is a "popular mispelling" with not many results while you know the correct search term would return more products, you might want to add a rule in the <a href="https://github.com/Smile-SA/elasticsuite/wiki/ThesaurusAdministration" target="blank">Thesaurus</a>.]]></argument>
68-
</arguments>
69-
</block>
7070
</container>
7171

7272
<container name="dashboard-right-col" htmlTag="div" htmlClass="dashboard-main col-m-4 col-m-push-1">

0 commit comments

Comments
 (0)