nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

simple solution to fix indexing of .ods files #192

Closed hkienlen closed 2 years ago

hkienlen commented 2 years ago

Signed-off-by: Hervé KIENLEN hkienlen@arawa.fr

BUG

new .ods documents are not indexed live

field [content] not present as part of path [attachment.content]

Resolution

It seems there is no field attachment.content for .ods document.So ignoring the error from the attachement ingest solves the issue

attachment
Description
attachment
Processors
[
  {
    "attachment": {
      "field": "content",
      "indexed_chars": -1
    },
    "convert": {
      "field": "attachment.content",
      "type": "string",
      "target_field": "content",
      "ignore_failure": true
    },
    "remove": {
      "field": "attachment.content",
      "ignore_failure": true
    }
  }
ArtificialOwl commented 2 years ago

/backport to stable24

ArtificialOwl commented 2 years ago

/backport to stable23

ArtificialOwl commented 2 years ago

/backport to stable22