Skip to content

Commit ad60f5f

Browse files
authored
Fixed blog search issue
Error: Numeric value out of range: 1690 DOUBLE value is out of range in
1 parent 88f5d32 commit ad60f5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Model/ResourceModel/Post/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ public function addSearchFilter($term)
224224
$this->addExpressionFieldToSelect(
225225
'search_rate',
226226
'(0
227-
+ (MATCH (title, meta_keywords, meta_description, identifier, content) AGAINST ("{{term}}")) * 1)',
227+
+ FORMAT(MATCH (title, meta_keywords, meta_description, identifier, content) AGAINST ("{{term}}"), 4))',
228228
[
229229
'term' => $term,
230230
]

0 commit comments

Comments
 (0)