nextcloud / nextcloud/fulltextsearch

How do you configured Elasticsearch to run fulltextsearch:index? Nextcloud 20 Snap Ubuntu 20.04

Open
#603 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

docs
Dominant language
PHP
Stars
234
Forks
64
Avg merge
6h 18m
Merged PRs (30d)
10

Description

I followed the "Basic Installation" instructions here: https://github.com/nextcloud/fulltextsearch/wiki/Basic-Installation . I'm running Nextcloud snap in Ubuntu 20.04.

I installed elasticsearch with these instructions: https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-elasticsearch-on-ubuntu-20-04 and is running

jon@nextcloud:/$ sudo systemctl status elasticsearch
● elasticsearch.service - Elasticsearch
     Loaded: loaded (/lib/systemd/system/elasticsearch.service; disabled; vendor preset: enabled)
     Active: active (running) since Sat 2021-01-16 19:38:14 UTC; 10min ago
       Docs: https://www.elastic.co
   Main PID: 80065 (java)
      Tasks: 62 (limit: 5821)
     Memory: 1.2G
     CGroup: /system.slice/elasticsearch.service
             ├─80065 /usr/share/elasticsearch/jdk/bin/java -Xshare:auto -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch -Xss1m -Djava.awt.headless=true -Dfi>
             └─80264 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller

Jan 16 19:37:42 nextcloud systemd[1]: Starting Elasticsearch...
Jan 16 19:38:14 nextcloud systemd[1]: Started Elasticsearch.

jon@nextcloud:/$ curl -X GET 'http://localhost:9200'
{
  "name" : "nextcloud",
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "878MPanmSu-pwoVlSr2z6A",
  "version" : {
    "number" : "7.10.2",
    "build_flavor" : "default",
    "build_type" : "deb",
    "build_hash" : "747e1cc71def077253878a59143c1f785afa92b9",
    "build_date" : "2021-01-13T00:42:12.435326Z",
    "build_snapshot" : false,
    "lucene_version" : "8.7.0",
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search"
}

But I can't index!

jon@nextcloud:/$ sudo nextcloud.occ fulltextsearch:index

In Index.php line 225:
                                                     
  Please install php-readline, or use --no-readline  
                                                     

fulltextsearch:index [--output [OUTPUT]] [-r|--no-readline] [--] [<options>]

Elasticsearch ins't configured properly I guess?

jon@nextcloud:/$ sudo nextcloud.occ fulltextsearch:test
 
.Testing your current setup:  
Creating mocked content provider. ok  
Testing mocked provider: get indexable documents. (2 items) ok  
Loading search platform. fail 
In ConfigService.php line 126:
                                                         
  Your ElasticSearchPlatform is not configured properly  
                                                         

fulltextsearch:test [--output [OUTPUT]] [-j|--json] [-d|--platform_delay PLATFORM_DELAY]
jon@nextcloud:/$ sudo nextcloud.occ fulltextsearch:check
Full text search 20.0.0
 
- Search Platform:
Elasticsearch 20.0.0 (Selected)
(not configured) 

- Content Providers:
Files 20.0.0
{
    "files_local": "1",
    "files_external": "1",
    "files_group_folders": "1",
    "files_encrypted": "0",
    "files_federated": "0",
    "files_size": "20",
    "files_pdf": "1",
    "files_office": "1",
    "files_image": "0",
    "files_audio": "0"
}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked Basic Installation wiki, then inspect the output of nextcloud.occ fulltextsearch:check and run nextcloud.occ fulltextsearch:test. The issue is resolved when the Elasticsearch platform is configured and both the test and fulltextsearch:index command complete successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
elasticsearch, php, ubuntu
Domain
backend, search
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.