Skip to content

Commit cf08432

Browse files
author
Prabhu Ram
committed
MC-21228: Support partial word search in Elasticsearch
- query fix
1 parent 129dedb commit cf08432

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CatalogSearch/etc/search_request.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
</query>
2121
<query xsi:type="matchQuery" value="$search_term$" name="search">
2222
<match field="*"/>
23+
<match field="name" matchCondition="match_phrase_prefix"/>
24+
<match field="sku" matchCondition="match_phrase_prefix"/>
2325
</query>
2426
<query xsi:type="filteredQuery" name="category">
2527
<filterReference clause="must" ref="category_filter"/>

0 commit comments

Comments
 (0)