<?xml version="1.0" encoding="UTF-8"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
    <system>
        <section id="misspell" translate="label" sortOrder="12" showInDefault="1" showInWebsite="1" showInStore="1">
            <label>Search spell correction</label>
            <tab>mirasvit</tab>
            <resource>Mirasvit_Misspell::misspell_config</resource>
            <group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                <label>Search spell correction</label>
                <comment><![CDATA[Configure the spell correction features in the search system.]]></comment>
                <fieldset_css>mst_search_group_config</fieldset_css>

                <field id="active" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Auto-correct misspelled queries</label>
                    <comment><![CDATA[Suggests correct spellings for user search terms.]]></comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <config_path>misspell/general/active</config_path>
                </field>

                <field id="misspell_notice" translate="label" type="select" sortOrder="15" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Show spell correction notice in autocomplete</label>
                    <comment><![CDATA[Enable to display a notice in the autocomplete dropdown when a search query has been corrected for spelling.]]></comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <config_path>misspell/general/misspell_notice</config_path>
                    <depends>
                        <field id="active">1</field>
                    </depends>
                </field>

                <field id="fallback" translate="label" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
                    <label>Enable fallback search</label>
                    <comment><![CDATA[The search automatically expands to related terms when no results are found.]]></comment>
                    <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
                    <config_path>misspell/general/fallback</config_path>
                </field>
            </group>
        </section>
    </system>
</config>
