alleyinteractive / alleyinteractive/elasticsearch-extensions
`disable_phrase_matching()` Should Disable Phrase Matching for VIP Search Adapter
- Ngôn ngữ chính
- PHP
- Star
- 5
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
### Description
I discovered that ElasticPress (and thus VIP Search) uses a "phrase" clause out of the box in its "multi_match" queries. The nature of this phrase match is such that Elasticsearch will apply similar logic to its DSL as what the phrase matching feature provides. In other words, VIP Search has "phrase matching" enabled by default (as part of a multi_match within a "should" clouse). I will create a new issue shortly that would have this feature disabled if the feature is disabled via disable_phrase_matching().
It is worth noting that ElasticPress offers a filter that can be used to reduce the `boost` of the clause mentioned above E.G.
```
add_filter( 'ep_match_phrase_boost', fn() => 0 );
### Use Case
Using VIP Search as a provider, when a user sets `disable_phrase_matching()`, phrase matching should be disabled. That is to say, if the feature is disabled in EX, searching with double quotes should NOT cause exact matching to occur.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.