Switch to unified view

a/src/rcldb/rcldb.cpp b/src/rcldb/rcldb.cpp
...
...
915
    // Split and index the path from the url for path-based filtering
915
    // Split and index the path from the url for path-based filtering
916
    {
916
    {
917
    string path = url_gpath(doc.url);
917
    string path = url_gpath(doc.url);
918
    vector<string> vpath;
918
    vector<string> vpath;
919
    stringToTokens(path, vpath, "/");
919
    stringToTokens(path, vpath, "/");
920
  // If vpath is not /, the last elt is the file/dir name, not a
921
  // part of the path.
922
  if (vpath.size())
923
      vpath.resize(vpath.size()-1);
920
    splitter.curpos = 0;
924
    splitter.curpos = 0;
921
    newdocument.add_posting(wrap_prefix(pathelt_prefix),
925
    newdocument.add_posting(wrap_prefix(pathelt_prefix),
922
                splitter.basepos + splitter.curpos++);
926
                splitter.basepos + splitter.curpos++);
923
    for (vector<string>::iterator it = vpath.begin(); 
927
    for (vector<string>::iterator it = vpath.begin(); 
924
         it != vpath.end(); it++){
928
         it != vpath.end(); it++){