Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Elasticsearch

Elasticsearch

Scheduled Pinned Locked Moved Feature Requests
elasticsearch
54 Posts 15 Posters 7.0k Views 16 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • KubernetesK Kubernetes

    @girish what do you need to make this gem a official package?

    andreasduerenA Offline
    andreasduerenA Offline
    andreasdueren
    wrote on last edited by
    #38

    @Kubernetes I don't think it's wanted because they'd prefer to make it an add-on not as an app.

    1 Reply Last reply
    1
    • KubernetesK Offline
      KubernetesK Offline
      Kubernetes
      App Dev
      wrote on last edited by
      #39

      When i look at the time this thread is open I wonder if it could be an interims solution until the add-on is ready

      1 Reply Last reply
      3
      • J Offline
        J Offline
        joseph
        Staff
        wrote on last edited by
        #40

        Why not build it locally and deploy it?

        (I wonder if the reluctance of deploying non-appstore comes from the difficulty of building an app or because it's seen as dangerous/unstable?)

        KubernetesK 1 Reply Last reply
        0
        • J joseph

          Why not build it locally and deploy it?

          (I wonder if the reluctance of deploying non-appstore comes from the difficulty of building an app or because it's seen as dangerous/unstable?)

          KubernetesK Offline
          KubernetesK Offline
          Kubernetes
          App Dev
          wrote on last edited by Kubernetes
          #41

          @joseph 1) This approach is seperate to the common Cloudron usage
          2) Updates are not automatically, but manually
          3) Not everybody is able to build and install custom packages
          4) It requires public space on docker.hub or a private instance of docker repo
          5) the package is not optimized by the Cloudron maintainers 🙂

          1 Reply Last reply
          5
          • girishG girish

            @Nicolas Indeed, current plan is to implement Elastic search as an addon and not as an app. This will help apps like Nextcloud etc have document search as well. I will move this port to Feature Requests since it's a platform level change.

            If you want to use this right away, there are two approaches:

            • use an external elastic search (i.e install it on a separate server and have the LAMP app access that)
            • alternately, create a cloudron package and install elastic search as an app. You can install this package on elastic.domain.com and then your app can use it directly.
            L Offline
            L Offline
            LoudLemur
            wrote on last edited by
            #42

            @girish Perhaps the Nextcloud Talk High Performance Backend as well as the Elasticsearch could be installed together onto the same server, somehow.

            There is also Manticore:
            https://forum.cloudron.io/topic/9753/manticore-search-oss-fast-database-for-search-alternative-for-elasticsearch

            1 Reply Last reply
            2
            • andreasduerenA Offline
              andreasduerenA Offline
              andreasdueren
              wrote last edited by
              #43

              Updated Elastic to v9.1.5
              https://git.due.ren/andreas/elasticsearch-cloudron/releases/tag/v9.1.5

              1 Reply Last reply
              6
              • nichu42N Offline
                nichu42N Offline
                nichu42
                wrote last edited by
                #44

                Great stuff! Store version when?

                Matrix: @nichu42:blueplanet.social

                1 Reply Last reply
                3
                • andreasduerenA Offline
                  andreasduerenA Offline
                  andreasdueren
                  wrote last edited by
                  #45

                  Updated: https://git.due.ren/andreas/elasticsearch-cloudron/releases/tag/v1.0.17

                  • Plugins: bundle analysis-icu in the image so language-specific analyzers (incl. German) work out of the box and no longer hit runtime install failures on Cloudron’s read-only FS.
                  • Stability: revamped heap management to respect ES_JAVA_HEAP, custom jvm.options.d, and cgroup limits
                  1 Reply Last reply
                  2
                  • nichu42N Offline
                    nichu42N Offline
                    nichu42
                    wrote last edited by
                    #46

                    Is there a ELI5 installation guide for this?

                    Matrix: @nichu42:blueplanet.social

                    andreasduerenA 1 Reply Last reply
                    0
                    • nichu42N nichu42

                      Is there a ELI5 installation guide for this?

                      andreasduerenA Offline
                      andreasduerenA Offline
                      andreasdueren
                      wrote last edited by
                      #47

                      @nichu42 This is honestly not super stable yet, I'm only using it for some nextcloud purposes and haven't tested it thoroughly.

                      1 Reply Last reply
                      2
                      • girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote last edited by
                        #48

                        @andreasdueren do you know if it's multi-tenant ? I think it makes sense to make elasticsearch as an addon (instead of an app). That way apps can come pre-installed/pre-configured with it. Apps and addons are very similar packaging wise. There is just some automation on top of it for backups and upgrades.

                        What's needed for addons is: an automated way to create (say) a username/password on the fly for a specific app. (The platform then injects these as env var in the container). If ES supports multiple stores (db/index or whatever it's called in ES world), then this username/password pair has to limit access to specific store i.e one app cannot access another app's store.

                        jdaviescoatesJ 1 Reply Last reply
                        3
                        • girishG girish

                          @andreasdueren do you know if it's multi-tenant ? I think it makes sense to make elasticsearch as an addon (instead of an app). That way apps can come pre-installed/pre-configured with it. Apps and addons are very similar packaging wise. There is just some automation on top of it for backups and upgrades.

                          What's needed for addons is: an automated way to create (say) a username/password on the fly for a specific app. (The platform then injects these as env var in the container). If ES supports multiple stores (db/index or whatever it's called in ES world), then this username/password pair has to limit access to specific store i.e one app cannot access another app's store.

                          jdaviescoatesJ Offline
                          jdaviescoatesJ Offline
                          jdaviescoates
                          wrote last edited by
                          #49

                          @girish I'd love to be able to use Eleasticsearch on Cloudron so we can have full text search on Nextcloud (because I keep thinking of moving my Nextcloud away Cloudron and search is one of the reasons why - high performance backends and other shiny features that come as standard in the AIO package being other reasons)...

                          ...so I was intrigued by you question and didn't know the response. ChatGPT say:

                          Right — so what Girish is asking about hinges on whether Elasticsearch supports secure multi-tenancy, meaning:
                          can multiple apps share a single ES instance safely, with each app isolated to its own dataset (index or namespace) and credentials?

                          Here’s how that works in Elasticsearch:


                          🔍 Multi-tenancy in Elasticsearch

                          Elasticsearch does not natively provide hard multi-tenant isolation in the open-source (Basic) tier. All indices in a cluster are accessible to any client that can authenticate, unless you’re running a commercial licence (Elastic’s “Gold” or higher) with role-based access control (RBAC) via Elastic Stack Security (formerly X-Pack).

                          However, you can approximate multi-tenancy in several ways:


                          1. Single cluster, per-app indices (no true isolation)

                          • Each app gets its own index (e.g. app1_*, app2_*).
                          • Credentials: You can create separate API keys or users per app if you’re using Elastic Stack Security.
                          • Without X-Pack security, you can’t restrict one user to only their own indices.
                          • âś… Simple to manage
                          • ❌ No isolation without paid security features

                          2. Single cluster, per-app namespaces with RBAC (requires paid Elastic licence)

                          • You create roles limiting each user to their own index patterns (e.g. role_app1 → indices: app1_*).
                          • Then create a user per app and assign its role.
                          • âś… True logical isolation
                          • ⚠️ Requires enabling security features (which are part of Elastic’s commercial licence, not open source)

                          3. Separate Elasticsearch instances per app

                          • Each app gets its own single-tenant ES container.
                          • Cloudron would manage these automatically as separate addons (like how Postgres addons work).
                          • âś… Strong isolation, no need for commercial features
                          • ❌ More resource usage, less efficient

                          4. OpenSearch alternative

                          If you switch to OpenSearch (the fully open-source fork of Elasticsearch 7.10), it includes fine-grained access control (FGAC) and multi-tenancy features under the Apache 2.0 licence.
                          That makes it more suitable for Cloudron’s addon model, since you can:

                          • Create tenants
                          • Restrict users to specific indices
                          • Use internal user databases or LDAP for auth
                          • Do all this without paid licensing

                          đź’ˇ Summary (for Girish / Cloudron dev context)

                          Option Isolation Licensing Suitable for Addon Model? Notes
                          Elasticsearch OSS None Open source ❌ No way to restrict users per index
                          Elasticsearch (with X-Pack Security) Yes Commercial ⚠️ Technically possible, but licence issue
                          Multiple ES containers Full Open source âś… More resource-heavy
                          OpenSearch Yes Open source âś…âś… Best fit for Cloudron addon use-case

                          âś… Recommendation

                          If the goal is to package Elasticsearch as a Cloudron addon shared by multiple apps with per-app credentials:

                          • Use OpenSearch, not Elastic’s OSS build.

                          • Implement addon hooks to:

                            • Create an index pattern per app (app_<id>_*)
                            • Create a user + password via the OpenSearch security API
                            • Assign permissions for that index pattern
                            • Inject credentials into the app container’s env vars

                          That way, the model matches existing Cloudron addons like PostgreSQL: single shared service, isolated logical databases per app.


                          Would you like me to sketch a quick pseudo-flow (in YAML or JSON) showing how Cloudron could auto-provision an OpenSearch user/index when an app requests the addon?

                          I use Cloudron with Gandi & Hetzner

                          andreasduerenA 1 Reply Last reply
                          0
                          • jdaviescoatesJ Offline
                            jdaviescoatesJ Offline
                            jdaviescoates
                            wrote last edited by jdaviescoates
                            #50

                            Now I'm wondering if Nextcloud can be configured to use OpenSearch instead of Eleasticsearch!

                            And it sounds like the answer is yes!

                            Excellent question — and you’re right to wonder!

                            Here’s the situation as of late 2025:


                            🔍 Nextcloud and OpenSearch Compatibility

                            âś… The good news:
                            Yes — Nextcloud can use OpenSearch instead of Elasticsearch for full-text search.

                            OpenSearch is a drop-in fork of Elasticsearch 7.10, and Nextcloud’s full-text-search ecosystem (the core Full Text Search app plus back-ends like Full Text Search – Elasticsearch Platform) works with any API-compatible engine — which OpenSearch still is.

                            Nextcloud’s own documentation and issue tracker confirm that OpenSearch works if you’re running:

                            • Nextcloud ≥ 23
                            • OpenSearch ≥ 1.0
                            • The app Full text search – Elasticsearch Platform version ≥ 1.9.0 (latest is fine)

                            ⚙️ How to configure Nextcloud to use OpenSearch

                            1. Install OpenSearch
                              (either via Docker, Cloudron addon, or standalone service)

                            2. Enable the required Nextcloud apps

                              • fulltextsearch
                              • fulltextsearch_elasticsearch (this works with OpenSearch too)
                            3. Set connection details in config.php

                              'fulltextsearch' => [
                                  'elasticHost' => 'http://localhost:9200',  // your OpenSearch endpoint
                                  'elasticIndex' => 'nextcloud',
                                  'elasticUser' => 'yourusername',
                                  'elasticPassword' => 'yourpassword',
                              ],
                              

                              or via occ commands:

                              sudo -u www-data php occ config:app:set fulltextsearch elasticHost --value="http://opensearch:9200"
                              sudo -u www-data php occ config:app:set fulltextsearch elasticIndex --value="nextcloud"
                              
                            4. Index content

                              sudo -u www-data php occ fulltextsearch:index
                              

                            ⚠️ Things to watch out for

                            • TLS/HTTPS: Nextcloud’s app requires valid HTTPS certificates if the OpenSearch endpoint is remote.
                            • Authentication: If you enable OpenSearch security, provide credentials via the above config keys.
                            • Version mismatch: Some users report minor compatibility warnings in logs (harmless) because OpenSearch identifies itself differently, but functionality works.

                            đź’ˇ Summary

                            Feature Elasticsearch OpenSearch
                            Works with Nextcloud FTS âś… âś…
                            Open Source (Apache 2.0) ❌ (Elastic 2.0) ✅
                            Multi-tenant security đź”’ Paid feature âś… Built-in
                            Best choice for Cloudron addon ⚠️ ✅

                            So yes — Nextcloud can happily talk to OpenSearch, making it the perfect backend for a Cloudron-style addon that multiple apps (including Nextcloud) could use securely.

                            Would you like me to show how that addon provisioning could look (so Nextcloud would automatically get its own OpenSearch index and credentials when installed)?

                            I use Cloudron with Gandi & Hetzner

                            1 Reply Last reply
                            0
                            • girishG Offline
                              girishG Offline
                              girish
                              Staff
                              wrote last edited by
                              #51

                              If what ChatGPT is true, indeed then OpenSearch might be a better fit than ElasticSearch for an addon.

                              1 Reply Last reply
                              2
                              • jdaviescoatesJ jdaviescoates

                                @girish I'd love to be able to use Eleasticsearch on Cloudron so we can have full text search on Nextcloud (because I keep thinking of moving my Nextcloud away Cloudron and search is one of the reasons why - high performance backends and other shiny features that come as standard in the AIO package being other reasons)...

                                ...so I was intrigued by you question and didn't know the response. ChatGPT say:

                                Right — so what Girish is asking about hinges on whether Elasticsearch supports secure multi-tenancy, meaning:
                                can multiple apps share a single ES instance safely, with each app isolated to its own dataset (index or namespace) and credentials?

                                Here’s how that works in Elasticsearch:


                                🔍 Multi-tenancy in Elasticsearch

                                Elasticsearch does not natively provide hard multi-tenant isolation in the open-source (Basic) tier. All indices in a cluster are accessible to any client that can authenticate, unless you’re running a commercial licence (Elastic’s “Gold” or higher) with role-based access control (RBAC) via Elastic Stack Security (formerly X-Pack).

                                However, you can approximate multi-tenancy in several ways:


                                1. Single cluster, per-app indices (no true isolation)

                                • Each app gets its own index (e.g. app1_*, app2_*).
                                • Credentials: You can create separate API keys or users per app if you’re using Elastic Stack Security.
                                • Without X-Pack security, you can’t restrict one user to only their own indices.
                                • âś… Simple to manage
                                • ❌ No isolation without paid security features

                                2. Single cluster, per-app namespaces with RBAC (requires paid Elastic licence)

                                • You create roles limiting each user to their own index patterns (e.g. role_app1 → indices: app1_*).
                                • Then create a user per app and assign its role.
                                • âś… True logical isolation
                                • ⚠️ Requires enabling security features (which are part of Elastic’s commercial licence, not open source)

                                3. Separate Elasticsearch instances per app

                                • Each app gets its own single-tenant ES container.
                                • Cloudron would manage these automatically as separate addons (like how Postgres addons work).
                                • âś… Strong isolation, no need for commercial features
                                • ❌ More resource usage, less efficient

                                4. OpenSearch alternative

                                If you switch to OpenSearch (the fully open-source fork of Elasticsearch 7.10), it includes fine-grained access control (FGAC) and multi-tenancy features under the Apache 2.0 licence.
                                That makes it more suitable for Cloudron’s addon model, since you can:

                                • Create tenants
                                • Restrict users to specific indices
                                • Use internal user databases or LDAP for auth
                                • Do all this without paid licensing

                                đź’ˇ Summary (for Girish / Cloudron dev context)

                                Option Isolation Licensing Suitable for Addon Model? Notes
                                Elasticsearch OSS None Open source ❌ No way to restrict users per index
                                Elasticsearch (with X-Pack Security) Yes Commercial ⚠️ Technically possible, but licence issue
                                Multiple ES containers Full Open source âś… More resource-heavy
                                OpenSearch Yes Open source âś…âś… Best fit for Cloudron addon use-case

                                âś… Recommendation

                                If the goal is to package Elasticsearch as a Cloudron addon shared by multiple apps with per-app credentials:

                                • Use OpenSearch, not Elastic’s OSS build.

                                • Implement addon hooks to:

                                  • Create an index pattern per app (app_<id>_*)
                                  • Create a user + password via the OpenSearch security API
                                  • Assign permissions for that index pattern
                                  • Inject credentials into the app container’s env vars

                                That way, the model matches existing Cloudron addons like PostgreSQL: single shared service, isolated logical databases per app.


                                Would you like me to sketch a quick pseudo-flow (in YAML or JSON) showing how Cloudron could auto-provision an OpenSearch user/index when an app requests the addon?

                                andreasduerenA Offline
                                andreasduerenA Offline
                                andreasdueren
                                wrote last edited by andreasdueren
                                #52

                                @jdaviescoates said in Elasticsearch:

                                Use OpenSearch

                                Not sure if it's 100% compatible with nextcloud. I guess the only way to be sure would be to package and test it.

                                1 Reply Last reply
                                1
                                • andreasduerenA Offline
                                  andreasduerenA Offline
                                  andreasdueren
                                  wrote last edited by
                                  #53

                                  There is mixed data on compatability.

                                  OpenSearch […] will not work.

                                  opensearch is not supportedd

                                  For anyone reading this post for solution, I am currently using OpenSearch for FullTextSearch with NextCloud using this project : - https://github.com/fairkom/nextcloud_opensearch

                                  1 Reply Last reply
                                  1
                                  • nichu42N Offline
                                    nichu42N Offline
                                    nichu42
                                    wrote last edited by
                                    #54

                                    Newer OpenSearch versions do not work with Mastodon anymore. This is what I need ES for.

                                    Matrix: @nichu42:blueplanet.social

                                    1 Reply Last reply
                                    1
                                    Reply
                                    • Reply as topic
                                    Log in to reply
                                    • Oldest to Newest
                                    • Newest to Oldest
                                    • Most Votes


                                    • Login

                                    • Don't have an account? Register

                                    • Login or register to search.
                                    • First post
                                      Last post
                                    0
                                    • Categories
                                    • Recent
                                    • Tags
                                    • Popular
                                    • Bookmarks
                                    • Search