mirror of
https://github.com/docmost/docmost.git
synced 2026-08-26 00:07:04 +08:00
feat: index txt attachments for content search
This commit is contained in:
@@ -116,8 +116,8 @@ export class AttachmentService {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only index PDFs and DOCX files
|
// Only index PDF, DOCX and TXT files
|
||||||
if (['.pdf', '.docx'].includes(attachment.fileExt.toLowerCase())) {
|
if (['.pdf', '.docx', '.txt'].includes(attachment.fileExt.toLowerCase())) {
|
||||||
await this.attachmentQueue.add(
|
await this.attachmentQueue.add(
|
||||||
QueueJob.ATTACHMENT_INDEX_CONTENT,
|
QueueJob.ATTACHMENT_INDEX_CONTENT,
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
Submodule apps/server/src/ee updated: 1ab61e594f...3c198edfa0
Reference in New Issue
Block a user