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

Optimized Chinese search when NLQ is enabled. #13

Open
MochiXu opened this issue Aug 8, 2024 · 0 comments
Open

Optimized Chinese search when NLQ is enabled. #13

MochiXu opened this issue Aug 8, 2024 · 0 comments
Assignees

Comments

@MochiXu
Copy link
Collaborator

MochiXu commented Aug 8, 2024

Currently, with NLQ enabled, Tantivy treats "伊文斯隐瞒秘密" as a PhraseQuery, which is its default behavior. We need to refine this for Chinese. Here's a possible modification method:

query = "(Who is Obama?) OR TS\"伊文斯隐瞒秘密\""

By using "TS" to mark a subquery, the NLQ parser will generate a TermSetQuery for TS"伊文斯隐瞒秘密".

@MochiXu MochiXu self-assigned this Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant