index: fixed the fix for path elts too long...

This commit is contained in:
Jean-Francois Dockes 2011-02-14 20:30:26 +01:00
parent 1883b4622d
commit 26929e9fb9

View File

@ -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++);