Smile-SA/elasticsuite

View on GitHub
src/module-elasticsuite-core/etc/config.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0"?>
<!--
/**
 * Smile_ElasticsuiteCore default configuration.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade Smile ElasticSuite to newer
 * versions in the future.
 *
 * @category  Smile
 * @package   Smile\ElasticsuiteCore
 * @author    Aurelien FOUCRET <aurelien.foucret@smile.fr>
 * @copyright 2020 Smile
 * @license   Open Software License ("OSL") v. 3.0
 */
 -->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
    <default>
        <smile_elasticsuite_core_base_settings>
            <es_client>
                <enable_error_request_logging>0</enable_error_request_logging>
                <enable_debug_mode>0</enable_debug_mode>
                <servers>localhost:9200</servers>
                <connection_timeout>1</connection_timeout>
                <timeout>30</timeout>
                <max_parallel_handles>10</max_parallel_handles>
                <max_retries>2</max_retries>
                <enable_certificate_validation>1</enable_certificate_validation>
            </es_client>
            <indices_settings>
                <alias>magento2</alias>
                <indices_pattern>{{Ymd}}_{{His}}</indices_pattern>
                <number_of_shards>1</number_of_shards>
                <number_of_replicas>0</number_of_replicas>
                <batch_indexing_size>1000</batch_indexing_size>
            </indices_settings>
        </smile_elasticsuite_core_base_settings>

        <smile_elasticsuite_core_analysis_settings>
            <reference_analyzer>
                <trim_leading_zeroes>0</trim_leading_zeroes>
                <trim_trailing_zeroes>0</trim_trailing_zeroes>
                <reduce_zeroes>0</reduce_zeroes>
            </reference_analyzer>
            <stemmer>
                <use_default>1</use_default>
            </stemmer>
        </smile_elasticsuite_core_analysis_settings>

        <smile_elasticsuite_autocomplete_settings>
            <term_autocomplete>
                <max_size>3</max_size>
            </term_autocomplete>
        </smile_elasticsuite_autocomplete_settings>

        <catalog>
            <search>
                <min_query_length>2</min_query_length>
            </search>
        </catalog>

        <smile_elasticsuite_misc_settings>
            <footer_settings>
                <enable_es_link>1</enable_es_link>
            </footer_settings>
        </smile_elasticsuite_misc_settings>
    </default>
</config>