From 26929e9fb9fda3e2b1774d36176871913c3d3c32 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Mon, 14 Feb 2011 20:30:26 +0100 Subject: [PATCH] index: fixed the fix for path elts too long... --- src/rcldb/rcldb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp index 38e4499a..7fb265f1 100644 --- a/src/rcldb/rcldb.cpp +++ b/src/rcldb/rcldb.cpp @@ -932,7 +932,7 @@ bool Db::addOrUpdate(const string &udi, const string &parent_udi, it != vpath.end(); it++){ if (it->length() > 230) { // Just truncate it. May still be useful because of wildcards - *it = it->substr(230); + *it = it->substr(0, 230); } newdocument.add_posting(pathelt_prefix + *it, splitter.basepos + splitter.curpos++);