Skip to content

Commit ecc7934

Browse files
committed
update comment
1 parent 08219ef commit ecc7934

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/autocomplete-client/src/search/fetchMeilisearchResults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ function calculateHighlightMetadata(
140140
// Determine match level:
141141
// - 'none' if no matches
142142
// - 'partial' if some matches but not fully highlighted
143-
// - 'full' if all text is fully highlighted
143+
// - 'full' if the highlighted text is the entire field value content
144144
let matchLevel: 'none' | 'partial' | 'full' = 'none'
145145
if (matches.length > 0) {
146146
matchLevel = cleanValue.includes(query) ? 'full' : 'partial'

0 commit comments

Comments
 (0)