Skip to content

MB-57888: Index Update#64

Merged
abhinavdangeti merged 1 commit intomasterfrom
IndexUpdate
Aug 11, 2025
Merged

MB-57888: Index Update#64
abhinavdangeti merged 1 commit intomasterfrom
IndexUpdate

Conversation

@Likith101
Copy link
Copy Markdown
Member

@Likith101 Likith101 commented Mar 26, 2025

  • Added UpdateFieldInfo which tracks which parts of the zapx fields have
    been deleted during an update
  • Added a new index interface which implements two new functions
  • OpenMeta opens only the index metadata allowing us to read index definition
    without starting the index
  • UpdateFields allows us to write to meta all of the updated fields info while
    the index is closed

Any updates to the index needs to be done while the index is closed. This is to ensure that once the index is live, the maps will not be updated under any circumstances. Hot reloads will require mapping which we are trying to avoid as these maps are used during query paths.

@abhinavdangeti
Copy link
Copy Markdown
Member

@Likith101 The fact that we're still needing to update the API needed here is cause for concern at this point, I think I'm voting this one out of v2.5.0 and morpheus.

@abhinavdangeti
Copy link
Copy Markdown
Member

Base change reverted with #65 and will need a fresh pull request (can be included in this PR).

@Likith101 Likith101 changed the title MB-57888: Added a method to load only meta without opening index MB-57888: Index Update Mar 31, 2025
 - Added UpdateFieldInfo which tracks which parts of the zapx fields have
been deleted during an update
 - Added a new index interface which implements two new functions
 - OpenMeta opens only the index metadata allowing us to read index definition
without starting the index
 - UpdateFields allows us to write to meta all of the updated fields info while
the index is closed
@abhinavdangeti abhinavdangeti requested a review from capemox July 28, 2025 19:53
@abhinavdangeti abhinavdangeti requested review from maneuvertomars and removed request for metonymic-smokey August 7, 2025 16:10
@abhinavdangeti abhinavdangeti merged commit 80183fc into master Aug 11, 2025
9 checks passed
@abhinavdangeti abhinavdangeti deleted the IndexUpdate branch August 11, 2025 19:45
Likith101 added a commit to blevesearch/bleve that referenced this pull request Oct 9, 2025
…ng (#2106)

- Added new apis for index update
- Added logic to determine whether index mappings can be updated and
what specifically changed between mappings
- Added logic to store and retrieve said information within bolt 
- Added checks to prevent deleted data from being referenced within
queries till the actual data on the segment is removed during the merge
process

Related:
- blevesearch/bleve_index_api#64
- blevesearch/scorch_segment_api#61
- blevesearch/zapx#318

---------

Co-authored-by: Abhinav Dangeti <abhinav@couchbase.com>
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.

3 participants