Skip to content

Commit d4c9953

Browse files
committed
🩹 (highlights) Try to render nicer
1 parent dd272df commit d4c9953

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openaleph_search/query/highlight.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ def get_highlighter(
1616
"phrase_limit": 256,
1717
"order": "score", # Best fragments first
1818
"boundary_scanner": "sentence", # Break at sentences
19-
"boundary_max_scan": 50,
19+
"boundary_max_scan": 100, # better sentence detection
20+
"boundary_chars": ".,!?;", # Explicit sentence boundary characters
21+
"no_match_size": 300, # Hard limit when no boundary found
2022
# "pre_tags": ["<em class='highlight-content'>"],
2123
# "post_tags": ["</em>"],
2224
"max_analyzed_offset": 999999, # Handle large documents

0 commit comments

Comments
 (0)