From 652b29eb560acde13d22adb2225a596a76ee7421 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Tue, 21 Jun 2016 12:16:10 +0200 Subject: [PATCH] increment basepos after adding postings for path elements so that cfn terms are not at the same positions --- src/rcldb/rcldb.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 6a50ffa4..63f66951 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -1345,6 +1345,7 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi, Doc &doc) newdocument.add_posting(wrap_prefix(pathelt_prefix) + *it, splitter.basepos + splitter.curpos++); } + splitter.basepos += splitter.curpos + 100; } // Index textual metadata. These are all indexed as text with