don't add the top container file name to the subdocs terms
This commit is contained in:
parent
8e7bac08c1
commit
cc052a31f8
@ -713,13 +713,19 @@ FsIndexer::processonefile(RclConfig *config,
|
|||||||
make_udi(fn, doc.ipath, udi);
|
make_udi(fn, doc.ipath, udi);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set file name, mod time and url if not done by filter
|
// Set file name, mod time and url if not done by
|
||||||
|
// filter. We used to set the top-level container file
|
||||||
|
// name for all subdocs without a proper file name, but
|
||||||
|
// this did not make sense (resulted in multiple not
|
||||||
|
// useful hits on the subdocs when searching for the
|
||||||
|
// file name).
|
||||||
if (doc.fmtime.empty())
|
if (doc.fmtime.empty())
|
||||||
doc.fmtime = ascdate;
|
doc.fmtime = ascdate;
|
||||||
if (doc.url.empty())
|
if (doc.url.empty())
|
||||||
doc.url = cstr_fileu + fn;
|
doc.url = cstr_fileu + fn;
|
||||||
const string *fnp = 0;
|
const string *fnp = 0;
|
||||||
if (!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty())
|
if (doc.ipath.empty() &&
|
||||||
|
(!doc.peekmeta(Rcl::Doc::keyfn, &fnp) || fnp->empty()))
|
||||||
doc.meta[Rcl::Doc::keyfn] = utf8fn;
|
doc.meta[Rcl::Doc::keyfn] = utf8fn;
|
||||||
|
|
||||||
char cbuf[100];
|
char cbuf[100];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user