Open Jsalas424 opened 3 years ago
Edit: I got a little farther. I neeeded to include this in my NC config:
jon@nextcloud:/$ sudo nextcloud.occ fulltextsearch:check
Full text search 20.0.0
- Search Platform:
Elasticsearch 20.0.0 (Selected)
{
"elastic_host": [
"://localhost:9200"
],
"elastic_index": "nextcloud",
"fields_limit": "10000",
"es_ver_below66": "0",
"analyzer_tokenizer": "standard"
}
- 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"
}
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. (Elasticsearch) ok
Testing search platform. ok
Locking process ok
Removing test. ok
Pausing 3 seconds 1 2 3 ok
Initializing index mapping. ok
Indexing generated documents. ok
Pausing 3 seconds 1 2 3 ok
Retreiving content from a big index (license). (size: 32386) ok
Comparing document with source. ok
Searching basic keywords:
- 'test' (result: 1, expected: ["simple"]) ok
- 'document is a simple test' (result: 2, expected: ["simple","license"]) ok
- '"document is a test"' (result: 0, expected: []) ok
- '"document is a simple test"' (result: 1, expected: ["simple"]) ok
- 'document is a simple -test' (result: 1, expected: ["license"]) ok
- 'document is a simple +test' (result: 1, expected: ["simple"]) ok
- '-document is a simple test' (result: 0, expected: []) ok
- 'document is a simple +test +testing' (result: 1, expected: ["simple"]) ok
- 'document is a simple +test -testing' (result: 0, expected: []) ok
- 'document is a +simple -test -testing' (result: 0, expected: []) ok
- '+document is a simple -test -testing' (result: 1, expected: ["license"]) ok
- 'document is a +simple -license +testing' (result: 1, expected: ["simple"]) ok
Updating documents access. ok
Pausing 3 seconds 1 2 3 ok
Searching with group access rights:
- 'license' - [] - (result: 0, expected: []) ok
- 'license' - ["group_1"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_1","group_2"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_3","group_2"] - (result: 1, expected: ["license"]) ok
- 'license' - ["group_3"] - (result: 0, expected: []) ok
Searching with share rights:
- 'license' - notuser - (result: 0, expected: []) ok
- 'license' - user2 - (result: 1, expected: ["license"]) ok
- 'license' - user3 - (result: 1, expected: ["license"]) ok
Removing test. ok
Unlocking process ok
jon@nextcloud:/$
But I still cannot 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>]
It WILL run with the --no-readline option but will NOT run if you install php-readline
jon@nextcloud:~$ sudo apt-get install php-readline
Reading package lists... Done
Building dependency tree
Reading state information... Done
php-readline is already the newest version (2:7.4+75).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
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>]
It WILL run with the --no-readline option but will NOT run if you install php-readline
jon@nextcloud:~$ sudo apt-get install php-readline Reading package lists... Done Building dependency tree Reading state information... Done php-readline is already the newest version (2:7.4+75). 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. 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>]
phpenmod readline
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
But I can't index!
Elasticsearch ins't configured properly I guess?