Skip to content

Open Source alternative to Algolia + Pinecone and an Easier-to-Use alternative to ElasticSearch ⚡ 🔍 ✨ Fast, typo tolerant, in-memory fuzzy Search Engine for building delightful search experiences

adding missing fields

krunal0eeb583afd9d
diff --git a/src/posting_list.cpp b/src/posting_list.cpp
index 8e243f45..f722b6ea 100644
--- a/src/posting_list.cpp
+++ b/src/posting_list.cpp
@@ -1699,7 +1699,14 @@ void posting_list_t::iterator_t::previous() {
curr_index = curr_block->size()-1;
delete [] ids;
+ delete [] offset_index;
+ delete [] offsets;
+
+ ids = offset_index = offsets = nullptr;
+
ids = curr_block->ids.uncompress();
+ offset_index = curr_block->offset_index.uncompress();
+ offsets = curr_block->offsets.uncompress();
} else {
curr_block = end_block;
}