feat: build invert index in transaction #3452
Draft
+638
−192
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.
Related to #3269.
I want to build an inverted index for Lance on a distributed system(ray/spark). Currently, I have modified the interface for creating an index to allow an array of fragment IDs to be passed in. If this array is passed in, the index creation interface will return an index object. Finally, commit the CreateIndex operation. Since there is no global statistical information at present, the BM25 search scoring part may need to be modified as the current scoring may not be very accurate. Generally, the basic functions are usable. I'd like to hear everyone's opinions first. whether this approach is feasible.
I also changed CreateIndex operation definition in python, make it similar to rust version. I don't know why it's different from rust version.