Skip to content

feat(fts): support ANALYZER parser with PARSER_PROPERTIES#65

Merged
whhe merged 4 commits into
oceanbase:mainfrom
whhe:feature/fts-analyzer-parser
Jun 4, 2026
Merged

feat(fts): support ANALYZER parser with PARSER_PROPERTIES#65
whhe merged 4 commits into
oceanbase:mainfrom
whhe:feature/fts-analyzer-parser

Conversation

@whhe

@whhe whhe commented Jun 4, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for OceanBase full-text ANALYZER parser configuration by carrying PARSER_PROPERTIES through the SDK and emitting it in the generated CREATE FULLTEXT INDEX DDL, plus adding a helper to construct analyzer properties and tests for compilation/validation.

Changes:

  • Extend FtsIndexParam and FtsIndex to carry parser_properties, and append PARSER_PROPERTIES = (...) during FTS index DDL compilation.
  • Add FtsParser.ANALYZER support, including a make_analyzer_properties() helper and validation when using the enum value.
  • Update client index creation paths to pass parser_properties, and add unit tests for SQL compilation and validation behavior.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tests/test_fts_index.py Adds unit tests covering ANALYZER behavior, parser_properties propagation, and DDL compilation.
pyobvector/schema/full_text_index.py Extends FtsIndex to accept parser_properties and appends PARSER_PROPERTIES to generated DDL.
pyobvector/client/ob_vec_client.py Passes parser_properties from FtsIndexParam into FtsIndex when creating indexes.
pyobvector/client/fts_index_param.py Adds ANALYZER parser type, parser_properties support, and helper for analyzer properties.
pyobvector/client/init.py Re-exports make_analyzer_properties from the client package.
pyobvector/init.py Re-exports make_analyzer_properties at top-level package API.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pyobvector/client/fts_index_param.py
Comment thread pyobvector/schema/full_text_index.py
@whhe whhe force-pushed the feature/fts-analyzer-parser branch from 240607c to 6ff0428 Compare June 4, 2026 12:23
whhe and others added 3 commits June 4, 2026 20:54
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
…rser_type and FtsIndex

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
@whhe whhe force-pushed the feature/fts-analyzer-parser branch from 6ff0428 to 9495c6f Compare June 4, 2026 12:54
@whhe whhe requested a review from Copilot June 4, 2026 12:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Comment thread pyobvector/schema/full_text_index.py
Comment thread pyobvector/client/fts_index_param.py Outdated
Comment thread pyobvector/schema/full_text_index.py
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@whhe whhe merged commit 11468da into oceanbase:main Jun 4, 2026
7 of 8 checks passed
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

Successfully merging this pull request may close these issues.

2 participants