Skip to content

Commit 00401c3

Browse files
author
Prabhu Ram
committed
MC-21228: Support partial word search in Elasticsearch
- Added partial search for skus
1 parent a9fd713 commit 00401c3

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
@@ -23,7 +23,9 @@
2323
<match field="*"/>
2424
</query>
2525
<query xsi:type="matchQuery" value="$search_term$" name="partial_search">
26+
<match field="*"/>
2627
<match field="name" matchCondition="match_phrase_prefix"/>
28+
<match field="sku" matchCondition="match_phrase_prefix"/>
2729
</query>
2830
<query xsi:type="filteredQuery" name="category">
2931
<filterReference clause="must" ref="category_filter"/>

0 commit comments

Comments
 (0)