Tika full text search extractor not working

I have owncloud OCIS up and running. It is using Authentik for OIDC login in case that matters. I’m trying to setup full text search via the tika service (documented here under Content extraction: Search | ownCloud ).

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.

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.

OCIS is connecting to Tika and doing the extraction as best as I can tell, but there are no results when searching for any of the words in the OCIS web client (ie β€œglacier”, β€œplague” etc)

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

See output for the following commands showing the OCIS search service status:

80ae748e0f06:~$ ocis search health
2026-10-26T20:12:50Z DBG Health got a good state code=200 line=github.com/owncloud/ocis/v2/services/search/pkg/command/health.go:48 service=search
80ae748e0f06:~$ ocis search version
Version: 8.2.1
Compiled: 2026-10-18 00:00:00 +0000 UTC

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ VERSION β”‚    ADDRESS     β”‚                              ID                              β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ 8.2.1   β”‚ 127.0.0.1:9220 β”‚ com.owncloud.api.search-524d2757-df68-4e64-ad2e-93d0f13eafae β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
80ae748e0f06:~$ ocis search server
2026-10-26T20:13:11Z INF Tika version: Apache Tika 4.1.0 line=github.com/owncloud/ocis/v2/services/search/pkg/content/tika.go:44 service=search
2026-10-26T20:13:11Z WRN starting service search line=github.com/owncloud/ocis/v2/services/search/pkg/command/server.go:86 service=search
2026-10-26T20:13:11Z ERR service search stopped with error error="runner search.debug failed: listen tcp 127.0.0.1:9224: bind: address already in use\nrunner search.grpc failed: listen tcp 127.0.0.1:9220: bind: address already in use" line=github.com/owncloud/ocis/v2/services/search/pkg/command/server.go:90 service=search

Output from the OCIS docker logs (filtered for β€œsearch=service” only):

2026-10-26T19:49:24Z DBG space search done duration=1.81841ms hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=d3f1af8c-0e77-49c8-931a-87b9333a31b1$bcf4a4e3-9c7b-4377-b342-5112d45fea4e!bcf4a4e3-9c7b-4377-b342-5112d45fea4e

2026-10-26T20:03:02Z DBG updating index event=line=github.com/owncloud/ocis/v2/services/search/pkg/search/events.go:76 service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=. service=search

2026-10-26T20:03:03Z INF file won't be indexed line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:581 path=. service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./test8.txt service=search

2026-10-26T20:03:03Z DBG new document count count=7 line=github.com/owncloud/ocis/v2/services/search/pkg/search/search.go:70 service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./test2.txt service=search

2026-10-26T20:03:03Z DBG element hasn't changed. Skipping. line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:526 path=./test2.txt service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./plague-probe.txt service=search

2026-10-26T20:03:03Z DBG element hasn't changed. Skipping. line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:526 path=./plague-probe.txt service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./test.txt service=search

2026-10-26T20:03:03Z DBG element hasn't changed. Skipping. line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:526 path=./test.txt service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./real.JPG service=search

2026-10-26T20:03:03Z DBG element hasn't changed. Skipping. line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:526 path=./real.JPG service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./rand service=search

2026-10-26T20:03:03Z DBG Walking tree line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:506 path=./test5.txt service=search

2026-10-26T20:03:03Z DBG element hasn't changed. Skipping. line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:526 path=./test5.txt service=search

2026-10-26T20:03:03Z DBG new document count count=7 line=github.com/owncloud/ocis/v2/services/search/pkg/search/search.go:70 service=search

2026-10-26T20:15:40Z DBG performing a search line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:99 query="(name:\"*glacierprobe7319*\" OR content:\"glacierprobe7319\")" service=search

2026-10-26T20:15:40Z DBG space search done duration=2.40953ms hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!a0ca6a90-a365-4782-871e-d44447bbc668

2026-10-26T20:15:40Z DBG space search done duration=2.573267ms hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=d3f1af8c-0e77-49c8-931a-87b9333a31b1$bcf4a4e3-9c7b-4377-b342-5112d45fea4e!bcf4a4e3-9c7b-4377-b342-5112d45fea4e

2026-10-26T20:15:42Z DBG performing a search line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:99 query=Tags:* service=search

2026-10-26T20:15:42Z DBG space search done duration="466.404Β΅s" hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!a0ca6a90-a365-4782-871e-d44447bbc668

2026-10-26T20:15:42Z DBG space search done duration="488.356Β΅s" hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=d3f1af8c-0e77-49c8-931a-87b9333a31b1$bcf4a4e3-9c7b-4377-b342-5112d45fea4e!bcf4a4e3-9c7b-4377-b342-5112d45fea4e

2026-10-26T20:15:42Z DBG performing a search line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:99 query="(name:\"*glacierprobe7319*\" OR content:\"glacierprobe7319\")" service=search

2026-10-26T20:15:42Z DBG space search done duration=2.486704ms hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=d3f1af8c-0e77-49c8-931a-87b9333a31b1$bcf4a4e3-9c7b-4377-b342-5112d45fea4e!bcf4a4e3-9c7b-4377-b342-5112d45fea4e

2026-10-26T20:15:42Z DBG space search done duration=2.471676ms hits=0 line=github.com/owncloud/ocis/v2/services/search/pkg/search/service.go:426 searchRequest=service=search space=a0ca6a90-a365-4782-871e-d44447bbc668$a0ca6a90-a365-4782-871e-d44447bbc668!a0ca6a90-a365-4782-871e-d44447bbc668

Hi @laxmanpradhan, welcome to the community!

Your logs point to a known incompatibility between oCIS and Apache Tika 4.x. Tika is doing its job (your log shows a successful parse and a response), but oCIS then finds nothing in the result to index. Tika 4.0 renamed the content key in its response from X-TIKA:content to tk:content, and the oCIS extractor still only reads the old one. The document gets indexed by name, but the content stays empty. That would also explain the hits=0 on your content:"glacierprobe7319" query. The lookups themselves work fine.

Lukas Hirt opened a PR for this (feat(search): support Apache Tika 4.x in content extraction by LukasHirt Β· Pull Request #13279 Β· owncloud/ocis Β· GitHub) that makes the extractor understand both Tika 3.x and 4.x. As of today it’s still open and not merged, and a backport to stable-9.0 is planned in a separate PR. I can’t tell you which release will ship it, so please don’t plan around a date.

Until then, I’d pin Tika to a 3.x image. The CI currently tests against apache/tika:3.2.2.0-full, so that’s the safest bet. Your compose file would change like this:

image: apache/tika:3.2.2.0-full

One catch: files that were already indexed stay without content, because oCIS skips them as β€œelement hasn’t changed” (you can see that in your log). After the switch you’ll need to re-index, for example with ocis search index --all-spaces (please check ocis search index --help on your version), or simply re-upload your test files.

The error at the end of your post (address already in use) is harmless. Running ocis search server inside the container starts a second search service next to the one that’s already running. Your ocis search health result looks fine.

If the search still comes back empty on Tika 3.x after re-indexing, post back with the search service logs at debug level and we’ll dig further.

1 Like

Thank you for this, changing to the old version of tika worked right away. I wonder if a quick note can me made on the docs here (I can’t post links):

owncloud.dev/services/search/#content-extraction

so that people know to use the old version of tika for now. In any case, it works for me now. Thank you!