Use given folder-id when adding initial fts docs

This commit is contained in:
Eike Kettner 2020-07-18 23:04:01 +02:00
parent fe27c0656f
commit bd20165d1a

View File

@ -36,7 +36,7 @@ object TextExtraction {
idxItem = TextData.item( idxItem = TextData.item(
item.item.id, item.item.id,
ctx.args.meta.collective, ctx.args.meta.collective,
None, //folder ctx.args.meta.folderId,
item.item.name.some, item.item.name.some,
None None
) )
@ -47,7 +47,7 @@ object TextExtraction {
} }
def extractTextIfEmpty[F[_]: Sync: ContextShift]( def extractTextIfEmpty[F[_]: Sync: ContextShift](
ctx: Context[F, _], ctx: Context[F, ProcessItemArgs],
cfg: ExtractConfig, cfg: ExtractConfig,
lang: Language, lang: Language,
collective: Ident, collective: Ident,
@ -60,7 +60,7 @@ object TextExtraction {
item.item.id, item.item.id,
ra.id, ra.id,
collective, collective,
None, //folder ctx.args.meta.folderId,
lang, lang,
ra.name, ra.name,
rm.content rm.content