Skip to content

Add read-only index support - #730

Draft
shashankbrgowda wants to merge 1 commit into
quickwit-oss:masterfrom
shashankbrgowda:read-only-index
Draft

Add read-only index support#730
shashankbrgowda wants to merge 1 commit into
quickwit-oss:masterfrom
shashankbrgowda:read-only-index

Conversation

@shashankbrgowda

Copy link
Copy Markdown

This draft adds Index.open_read_only(path) for opening immutable indexes without acquiring the metadata lock.

It depends on quickwit-oss/tantivy#3058 and the Tantivy 0.27 upgrade in tantivy-py. The temporary fork dependency will be removed before this PR is ready.

Built with GPT-5.6 Sol in the Codex desktop harness. Codex helped implement and review the binding and test. I reviewed and understand the submitted changes.

  • I have read the contributing guidelines and AI policy.

@shashankbrgowda

shashankbrgowda commented Aug 26, 2026

Copy link
Copy Markdown
Author

Sorry for the AI generated PR. There is currently no equivalent in tantivy-py to the custom directory workaround described in quickwit-oss/tantivy#557 (comment) because the Python bindings do not expose Tantivy’s Directory trait.

I opened quickwit-oss/tantivy#3058 to add read-only index support in Tantivy. This draft demonstrates how that API could be exposed through tantivy-py.

This would be useful for Python applications that use pre built tantivy indexes from read-only filesystem

I explained the fastapi use case here quickwit-oss/tantivy#557 (comment)

@cjrh

cjrh commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

This sounds fine. If upstream merges the upstream PR, I'm fine to merge this one.

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