feat: Migrate Lucene global index for fts#117
Open
lxy-9602 wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
No Linked issue.
Migrate Lucene-based global index support under
src/paimon/global_index/lucene/:Lucene adapter utilities:
LuceneDefs— defines common Lucene constants and aliases used by the Lucene global index (lucene_defs.h)LuceneUtils— provides helper conversions between Paimon values and Lucene query/index primitives (lucene_utils.h/cpp)LuceneDirectory— adapts Paimon file IO to Lucene directory operations (lucene_directory.h/cpp)LuceneInput— implements Lucene index input over Paimon file reads (lucene_input.h)LuceneFilter— builds Lucene filters from Paimon predicates (lucene_filter.h)LuceneCollector— collects Lucene search hits for global-index lookup (lucene_collector.h)Jieba analyzer:
JiebaAnalyzer— integrates cppjieba tokenization for Lucene text analysis (jieba_analyzer.h/cpp)Lucene global index:
LuceneGlobalIndex— exposes Lucene as a Paimon global index implementation (lucene_global_index.h/cpp)LuceneGlobalIndexFactory— creates Lucene global index instances from table options (lucene_global_index_factory.h/cpp)LuceneGlobalIndexReader— reads indexed rows and performs Lucene-backed lookup/search (lucene_global_index_reader.h/cpp)LuceneGlobalIndexWriter— writes row changes into Lucene index files (lucene_global_index_writer.h/cpp)Tests
Migrated Lucene/Jieba tests:
lucene_directory_test.cpp— validates Lucene directory behavior over Paimon file IOlucene_filter_test.cpp— validates predicate-to-Lucene filter conversionjieba_analyzer_test.cpp— validates Jieba analyzer tokenization behaviorjieba_api_test.cpp— validates direct cppjieba API usagelucene_global_index_test.cpp— validates Lucene global index read/write behaviorlucene_api_test.cpp— validates direct Lucene API behavior used by the global indexAPI and Format
Documentation
Generative AI tooling
Migrate-by: Codex