I have owncloud OCIS up and running. I trying to setup full text search via the tika service (documented here under Content extraction: owncloud.dev/services/search/#content-extraction ).

As a test, I make a new text file on OCIS and copy and paste some sample text into it (just a few hundred words). Then when checking the tika logs, I see it was auto triggered to start the content extraction process as shown below however it says the socket timed out.

When I do a search on owncloud, I see that there is an option for “Full Text Search”, so it is aware of tika, just does says no results found when I try to search any of the words that should be in the file I just created.

Has anyone else gotten full text search to work with OCIS?

INFO  [main] 01:46:43,522 org.apache.tika.server.core.TikaServerProcess Started Apache Tika server 452c19c1-f5f1-48b1-8c3b-188e31222c39 at http://0.0.0.0:9998/

INFO  [qtp1698182759-64] 01:47:35,467 org.apache.tika.server.core.resource.RecursiveMetadataResource /rmeta (autodetecting type)

INFO  [main] 01:47:35,847 [fork] pipesClientId=0 org.apache.tika.pipes.core.server.PipesServer Cache memory budget: 2220883968 bytes (default, a quarter of max heap)

INFO  [main] 01:47:35,857 [fork] pipesClientId=0 org.apache.tika.pipes.core.server.PipesServer watching parent pid 1 for exit

INFO  [main] 01:47:35,998 [fork] pipesClientId=0 org.apache.tika.config.loader.TikaLoader temporary files go to java.io.tmpdir=/tmp/pipes-server-0-2223921947919245211

INFO  [main] 01:47:36,051 [fork] pipesClientId=0 org.apache.tika.pipes.core.server.PipesServer forked JVM max heap: 8472 MB

INFO  [main] 01:47:36,063 [fork] pipesClientId=0 org.pf4j.DefaultPluginStatusProvider Enabled plugins: []

INFO  [main] 01:47:36,063 [fork] pipesClientId=0 org.pf4j.DefaultPluginStatusProvider Disabled plugins: []

INFO  [main] 01:47:36,065 [fork] pipesClientId=0 org.pf4j.DefaultPluginManager PF4J version 3.16.0 in 'deployment' mode

INFO  [main] 01:47:36,071 [fork] pipesClientId=0 org.pf4j.AbstractPluginManager Plugin 'tika-pipes-file-system-plugin@4.1.0' resolved

INFO  [main] 01:47:36,071 [fork] pipesClientId=0 org.pf4j.AbstractPluginManager Start plugin 'tika-pipes-file-system-plugin@4.1.0'

INFO  [main] 01:47:36,073 [fork] pipesClientId=0 org.apache.tika.pipes.plugin.fs.FileSystemPipesPlugin Starting

INFO  [main] 01:47:37,845 [fork] pipesClientId=0 org.apache.tika.config.loader.ParserLoader text recognizer org.apache.tika.parser.ocr.TesseractOCRParser for [image/bmp, image/gif, image/jp2, image/jpeg, image/jpx, image/png, image/tiff, image/x-portable-pixmap] (found among the loaded parsers; name it under "text-recognizers" to pin it)

INFO  [qtp1698182759-64] 01:47:38,046 org.apache.tika.pipes.core.PipesClient clientId=0: server successfully started

INFO  [main] 01:47:38,253 [fork] pipesClientId=0 org.apache.tika.pipes.timing.worker WORKER_TIMING id=4c7bc086-2e57-4c1c-b9ad-fd89d95e7ba0 req_deser_us=5210 ctx_merge_us=4763 intermediate_wait_us=30692 handoff_us=1136 fetch_us=4016 parse_us=166925 emit_us=102 worker_wall_us=171086 intermediate_us=107 resp_ser_us=1823 resp_write_us=97 resp_ack_us=189 resp_bytes=1404

INFO  [main] 01:48:38,290 [fork] pipesClientId=0 org.apache.tika.pipes.core.server.PipesServer socket timeout while waiting for task, shutting down

Tika Docker Compose:

  tika:
    container_name: owncloud-tika-1
    image: apache/tika:4.1.0-2-full
    restart: unless-stopped
    # command: apt update && apt install tesseract-ocr-xxx -y add additional languages (only works if Tika supports auto-detection for that language)
    networks:
      owncloud-net:
    ports:
      - 9998:9998 #shouldn't be needed if on the same docker network
    logging:
      driver: local

Relevant OCIS Docker ENVs

# full text search service
      SEARCH_EXTRACTOR_TYPE: tika
      SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://owncloud-tika-1:9998/
      FRONTEND_FULL_TEXT_SEARCH_ENABLED: true
      SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT: 20971520 # uint64 number specific number of bytes for max file size to index (processor intesive for large files), default 20MB