Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add highlighter algorithms #1887

Merged
merged 1 commit into from
Sep 18, 2024
Merged

Add highlighter algorithms #1887

merged 1 commit into from
Sep 18, 2024

Conversation

yingfeng
Copy link
Member

What problem does this PR solve?

For CJK based analyzer, AhoCoasick is directly used.
For stemmer based analyzer, call analyzer again.
The StandardAnalyzer is modified to support char offset, the highlighter will call such analyzer again to output precise offset.
If all analyzers could output char offset, then these information could be stored within inverted index, then we could continue improve the highlighter at that time.

Issue link:#1861

Type of change

  • New Feature (non-breaking change which adds functionality)

@yingfeng yingfeng added the ci PR can be test label Sep 18, 2024
@yingfeng yingfeng merged commit 10ac64b into infiniflow:main Sep 18, 2024
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci PR can be test
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant