diff --git a/src/rcldb/expansiondbs.cpp b/src/rcldb/expansiondbs.cpp index 742f9b67..3de4a964 100644 --- a/src/rcldb/expansiondbs.cpp +++ b/src/rcldb/expansiondbs.cpp @@ -45,6 +45,15 @@ bool createExpansionDbs(Xapian::WritableDatabase& wdb, // Erase and recreate all the expansion groups + // If langs is empty and we don't need casediac expansion, then no need to + // walk the big list + if (langs.empty()) { +#ifndef RCL_INDEX_STRIPCHARS + if (o_index_stripchars) +#endif + return true; + } + // Stem dbs vector stemdbs; // Note: tried to make this to work with stack-allocated objects, couldn't.