Question: is it possible to remove or update a document from the index?

Open
#105 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
rust
Domain
search

Research direction

Start by reviewing the existing document and index APIs to determine whether documents can be removed or replaced without rebuilding the index. Define how a unique document identifier would work and what completed update and deletion behavior should be, then add appropriate coverage if the feature is pursued.

Written by the indexing model from the issue text.

Description

Hi there,

Apparently there's no way to remove a document from the index. Also, it looks like if you "push" an updated version of your document, it's indexed along with the previous one... making some sort of a duplicate.

It's probably because there's no way to give a unique identifier to a document, which I assume is by design. So there's no way to say: "replace this record" for example.

But as a consequence, if I want to remove or update an entry of my "document database", the only way I see is to rebuild the index from scratch. Is there another way? If not, do you think it's worth trying to add this feature?

Dominant language
Rust
Stars
404
Forks
70
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quickwit-oss/tantivy-cli

All issues in quickwit-oss/tantivy-cli

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.