Replies: 2 comments
-
For example, for one search term it'll use the default analyzer "standard" as well as "whitespace", but for another search term it'll use "standard" and "shingle" - or for one term a field that is marked as searchable with a search_weight of 1 will appear in the multimatch query, while for another it won't |
Beta Was this translation helpful? Give feedback.
-
Hello @gusdemayo, That's a pretty huge subject there. There are several parameters that will affect how the queries are built
So, to make it simple, without going in too deep about the extra settings
Beyond those "short" explanations lie all the hooks and crannies related to search relevance settings I've quickly talked about. Regards, |
Beta Was this translation helpful? Give feedback.
-
Looking at the queries that get generated & eventually sent to elasticsearch, I've noticed that some of the fields retrieved & added to the multi_match section of the query in
Smile\ElasticsuiteCore\Search\Adapter\Elasticsuite\Request\Query\Builder\MultiMatch
inbuildQuery
vary depending on search term - sometimes they will appear in the multi_match query fields with their weights, sometimes not - even ifis_searchable
is set to true &search_weight
has a value in thecatalog_eav_attribute
tableI've also noticed that there is sometimes variance in which analyzers are used on particular fields for particular search terms
how is it determined which fields are applied to particular search terms, & which analyzers are applied?
Beta Was this translation helpful? Give feedback.
All reactions