More articles:
2017   2018   2019   2020   2021
2022   2023   2024   

2020-03-19 00:00:00

Technologyconfiguration|debian|elastic|full text|guide|how-to|install|java|nextcloud|search|setup

How to set up Elastic full text search for Nextcloud

The default search function in Nextcloud is a simple program that can find a document if you happen to correctly remember a word in the file name you are looking for. If you want to search for any text in the contents of Files, Notes, Bookmarks and in other apps that save their content as files, you need a full text search solution for Nextcloud. Elasticsearch can deliver it to you.

Elastic is a complex general purpose indexing system that the company behind the product provides both as a service and as a downloadable product primarily for enterprises and public administration. Nonetheless, a free version of the search program is available in Nextcloud Apps directory. Elasticsearch can be installed and configured manually after Nextcloud server is up and running.

Usually, when an app is available in the Apps directory, it means the app is easy to install. That's not the case with Elasticsearch. It can be confusing to set up with instructions scattered around in many places. Here is our guide for setting up Elasticsearch for Nextcloud.

The system configuration that we had when we studied Elasticsearch was Nextcloud 18 (Hub), PHP 7.3, Elasticsearch server 6.8.6, Elasticsearch app 1.5.0 and Java openjdk 11.0.6, all running on the same Debian 10 server.

Before you start, it is worth noting that Elasticsearch requires a large share of system resources. Once the new shiny search engine is running, you'll see that the default configuration of Elasticsearch has allocated more than 1GB of RAM.

1. Install Nextcloud apps for Elasticsearch

In your browser, open Nextcloud Apps directory, select Search in the left pane, and install three Search apps:

Full text search
Full text search - Elasticsearch platform
Full text search - Files
(Full text search - Bookmarks: this was untested, so we didn't try it)

Next, let's jump deep into Elasticsearch engine installation.

2. Install Elasticsearch server programs

First, you must install Java runtime on your server if you already don't have it. Enter, for instance, the following command to check for Java:

java --version

If you need to install Java (on Debian):

apt-get install openjdk-11-jre

The command installs the Open jdk version of Java. Another choice is Oracle Java.

Second, install apt-key for the Elastic server ( source):

wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -

Third, add Elastic repository into your system:

echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list

Fourth, install the search engine:

apt-get update
apt-get install elasticsearch

If you want to search inside PDF and other non-ascii text documents, install a plugin (adjust the beginning of the path to your system - bin/elasticsearch-plugin is constant):

/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment

3. Start the full text search engine

systemctl start elasticsearch

Commands stop and status let you stop the engine and view its status.

4. Test the setup

Run the following command to test the setup so far (even if you are root, you must sudo because the command must be run as www-data):

sudo -u www-data ./occ fulltextsearch:test
elasticsearch installation test run
Elasticsearch test run.

5. Indexing

The first time, indexing of content must be started manually:

sudo -u www-data ./occ fulltextsearch:index

After this, the index should update automatically. It may, however, take days (I think it took a week to update our test system) for the index to update in the free version of the software. Commercial version updates the index much faster.

You Are Ready to Search

Open Nextcloud in your browser and select the Search tool in the top toolbar.

full text search for nextcloud file contents: elasticsearch

News

2026-06-07 14:24:00

Camera technology has come a long way in 96 years – but the subject, moment and composition of these World Cup photographs haven’t aged a day. #photographyhttps://www.digitalcameraworld.com/photography/sports-photography/these-photos-of-the-very-first-fifa-world-cup-final-are-surprisingly-good-considering-they-were-taken-on-100-year-old-cameras


Interesting shop, but probably won't be open any time soon. #antiques #France

2026-05-24 15:13:05

arihak

Interesting shop, but probably won't be open any time soon.#antiques#France


News

2026-05-19 18:43:00

The #EU Passenger Package proposal aims at allowing travelers to book a single ticket for a cross-border #train journey that may include multiple rail operators. .https://klaava.com/major-improvement-for-train-passengers-planned-in-europe-single-tickets-for-cross-border-travel/


Going down. #roadrip .

2026-05-11 17:28:53

arihak

Going down.#roadrip .


News

2026-04-29 10:04:00

Long, heavy trucks sped across villages faster than any Tesla or Toyota driver would dare. Dangerous speeding on highways and national roads was frequent. At times, it seemed that traffic rules didn’t exist in ... #roadtrip #Europe .https://klaava.com/the-safest-countries-for-a-road-trip-in-europe/


Fallas in Valencia.

2026-04-22 12:55:41

Fallas in Valencia.


Guarding the house.

2026-04-17 17:22:03

arihak

Guarding the house.


News

2026-04-12 09:11:00

Cable stickers are doing a perfect job. #ev .https://klaava.com/stealing-electric-vehicle-charging-cables-is-a-thing/


but who knows

2026-04-05 17:33:41

but who knows


Watch out, little guys! You'll get wet feet soon.

2026-03-31 12:58:37

arihak

Watch out, little guys! You'll get wet feet soon.


News

2026-03-25 15:00:00

It has been evident for a few years already that residents in cities like Venice or Barcelona have had enough of the ever growing numbers of tourists that conquer their streets and cafes, and who may not respect local customs. Do #tourism statistics support this? #travelhttps://klaava.com/these-cities-in-europe-attract-so-many-tourists-that-they-may-outnumber-inhabitants-during-peak-seasons/


News

2026-03-22 11:59:00

From car chaos, pollution and noise to urban streets for people:- Today, #Paris is different. Tourists stroll more freely than ever on pedestrianized streets, breathing cleaner air. For those wanting to get around by bike, there are hundreds of miles of cycle lanes.https://edition.cnn.com/2026/03/21/travel/paris-transformation-anne-hidalgo-mayor


Ancient architecture featuring cables for modern life

2026-03-10 17:33:48

Ancient architecture featuring cables for modern life


News

2026-03-08 15:48:00

A perfectly reasonable question for a traveler to ask is: now, where are the countries that are safe to visit? Here is a ranking for the countries that are stable without serious conflicts that could threaten residents or tourists. #travel #safety .https://klaava.com/where-are-the-safest-countries-in-the-world/


Cafeteria.

2026-03-06 17:21:27

arihak

Cafeteria.


News

2026-02-24 17:17:00

In 2025, the world traveled more than the year before pandemic. Which regions did tourists visit? #travel .https://klaava.com/where-did-the-world-travel-in-2025-and-which-regions-lost-or-gained-visitors/


Traffic jam on a road in the fruit farm district.

2026-02-21 17:50:44

arihak

Traffic jam on a road in the fruit farm district.


News

2026-02-08 15:26:00

As a whole, it was a delightful trip to the visitor-friendly city. Here are the highlights of the Montpellier city center. #travel #Europe #Francehttps://klaava.com/city-break-in-the-pretty-and-friendly-montpellier-in-southern-france/


News

2026-01-27 15:27:00

Judged anonymously by an international panel, the 2025 TPOTY shortlist was selected from more than 20,000 entries across 160 countries, making this one of the most competitive #travel #photography competitions in the world.https://www.digitalcameraworld.com/photography/awards-and-competitions/the-worlds-best-travel-photographs-are-crowned-and-the-winning-images-are-simply-stunning


News

2026-01-22 17:33:00

A survey revealed the level of trust people have in their fellow citizens in 90 countries across the world. Here is the top 50 countries where people trust in other people the most. #travel #safety .https://klaava.com/when-traveling-do-you-trust-people-overseas-here-is-how-much-locals-across-the-world-trust-their-fellow-citizens/


More articles:
2017   2018   2019   2020   2021
2022   2023   2024