Skip to content

docs(maps): explain where the location data comes from - #575

Merged
JammingBen merged 2 commits into
opencloud-eu:mainfrom
jmrplens:docs-maps-location-data
Sep 30, 2026
Merged

JammingBen merged 2 commits into
opencloud-eu:mainfrom
jmrplens:docs-maps-location-data

Conversation

@jmrplens

@jmrplens jmrplens commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds a "Location data" section to the maps README. The folder view and the sidebar panel only show files that carry oc:location, which OpenCloud's search service writes when its Tika extractor reads the GPS data. With the default basic extractor no picture ever gets a location, so the folder view says "No files with location data" even for photos with EXIF GPS, and nothing in the README pointed to the search service.

The section explains that the location comes from the search service's Tika extractor, and links to the search service docs for enabling Tika and for the forced rescan that already indexed files need.

Related Issue

No issue. This came up in opencloud-eu/opencloud#3587, where the user asked what kind of location data the maps app expects and suggested documenting the answer here.

How Has This Been Tested?

  • test environment: opencloudeu/opencloud-rolling:8.0.1, apache/tika:latest (4.0.0), and the maps app shipped by opencloud-compose with folderViewEnabled: true, using a JPEG with EXIF GPS.
  • test case 1: with the default extractor the photo has no oc:location in PROPFIND.
  • test case 2: after switching to Tika, the same photo still has none, and opencloud search index --all-spaces --insecure skips it as unchanged. With --force-rescan it gets its coordinates and the pin shows up in the folder view. Without --insecure the command fails with tls: first record does not look like a TLS handshake.
  • test case 3: a photo uploaded after the switch gets its location within seconds, without a reindex.
  • The basic default was checked against main of opencloud-eu/opencloud, and the README passes prettier --check with @opencloud-eu/prettier-config.

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

The folder view and the sidebar panel only show files that carry
`oc:location`, which the search service writes when its Tika extractor
reads the GPS data. With the default `basic` extractor no picture ever
gets a location, and nothing in the README said so.

Document the two settings that enable it, the forced rescan that
existing files need, and the 20 MiB extraction limit.
Comment thread packages/web-app-maps/README.md Outdated
Comment on lines +9 to +24
To enable it, point the search service to an [Apache Tika](https://tika.apache.org/) server:

```yaml
SEARCH_EXTRACTOR_TYPE: tika
SEARCH_EXTRACTOR_TIKA_TIKA_URL: http://tika:9998
```

In [opencloud-compose](https://github.com/opencloud-eu/opencloud-compose) this is what `search/tika.yml` adds.

Files uploaded after that get their location within seconds. Files that were indexed before keep none, because unchanged files are skipped when the index is rebuilt, so force a rescan:

```bash
opencloud search index --all-spaces --force-rescan --insecure
```

`--insecure` is needed when the internal gRPC services run without TLS, which is the default. The search service only extracts metadata from files up to 20 MiB by default (`SEARCH_CONTENT_EXTRACTION_SIZE_LIMIT`, in bytes), so larger pictures get no location.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel like we should just link to the docs here, no need to duplicate content we already have: https://docs.opencloud.eu/docs/dev/server/services/search/information#tika

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair point, the Tika setup and the forced rescan are already covered there, so I've cut the section down to what that page doesn't say: that the maps app depends on it. The page never mentions location or GPS, which is what the user in opencloud-eu/opencloud#3587 was missing. The setup and the rescan are now links to it.

One thing the docs command doesn't have is --insecure: against the default setup, opencloud search index failed for me with tls: first record does not look like a TLS handshake without it. If that's worth fixing in services/search/README.md, I can open a PR there.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That would be awesome, thanks!

The Tika setup and the forced rescan are already documented in the
search service docs. Keep only what they don't say, that the maps app
reads the location the Tika extractor writes, and link to the Tika
and re-indexing sections for the rest.

@JammingBen JammingBen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@JammingBen
JammingBen merged commit d4ffbd4 into opencloud-eu:main Sep 30, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants