lnx-search / lnx

⚡ Insanely fast, 🌟 Feature-rich searching. lnx is the adaptable, typo tollerant deployment of the tantivy search engine.
https://lnx.rs
MIT License
1.21k stars 46 forks source link

Add new tantivy directory for merging combined segments. #111

Open ChillFish8 opened 1 year ago

ChillFish8 commented 1 year ago

Currently, we can only combine two or more segments into one another, which although works, can make our index inefficient.

We should create a directory that can read from the segment, and split it out into a temp directory (this can be done with the writer directory) then tell tantivy to process all of the deletes marked within the index (providing it is safe to do so, see below) and then re-export the directory to a new segment.

Issue notes