-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3305 from romainruaud/fix_restore-relevance-config
Restore deleted file by mistake.
- Loading branch information
Showing
1 changed file
with
68 additions
and
0 deletions.
There are no files selected for viewing
68 changes: 68 additions & 0 deletions
68
src/module-elasticsuite-core/etc/elasticsuite_relevance.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
<!-- | ||
/** | ||
* ElasticSuite default search request relevance 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 Romain RUAUD <[email protected]> | ||
* @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:Smile_ElasticsuiteCore:etc/elasticsuite_relevance_initial_config.xsd"> | ||
<default> | ||
<relevance> | ||
<fulltext_base_settings> | ||
<minimum_should_match>100%</minimum_should_match> | ||
<tie_breaker>1</tie_breaker> | ||
</fulltext_base_settings> | ||
<phrase_match_configuration> | ||
<enable_phrase_match>1</enable_phrase_match> | ||
<phrase_match_boost_value>10</phrase_match_boost_value> | ||
</phrase_match_configuration> | ||
<cutoff_frequency_configuration> | ||
<cutoff_frequency>0.15</cutoff_frequency> | ||
</cutoff_frequency_configuration> | ||
<span_match_configuration> | ||
<enable_span_match>0</enable_span_match> | ||
<span_match_boost_value>10</span_match_boost_value> | ||
<span_size>1</span_size> | ||
</span_match_configuration> | ||
<min_score_configuration> | ||
<enable_use_min_score>0</enable_use_min_score> | ||
<min_score_value>0</min_score_value> | ||
</min_score_configuration> | ||
<exact_match_configuration> | ||
<use_default_analyzer>0</use_default_analyzer> | ||
<use_reference_in_filter>0</use_reference_in_filter> | ||
<enable_single_term_custom_boost_values>0</enable_single_term_custom_boost_values> | ||
<single_term_phrase_match_boost_value>10</single_term_phrase_match_boost_value> | ||
<single_term_sortable_boost_value>20</single_term_sortable_boost_value> | ||
</exact_match_configuration> | ||
</relevance> | ||
<spellchecking> | ||
<fuzziness> | ||
<enable>1</enable> | ||
<use_default_minimum_should_match>1</use_default_minimum_should_match> | ||
<minimum_should_match>100%</minimum_should_match> | ||
<value>AUTO</value> | ||
<prefix_length>1</prefix_length> | ||
<max_expansion>10</max_expansion> | ||
</fuzziness> | ||
<phonetic> | ||
<enable>1</enable> | ||
</phonetic> | ||
<term_vectors> | ||
<use_all_tokens>0</use_all_tokens> | ||
<use_reference_analyzer>0</use_reference_analyzer> | ||
<use_edge_ngram_analyzer>0</use_edge_ngram_analyzer> | ||
</term_vectors> | ||
</spellchecking> | ||
</default> | ||
</config> |