nextcloud / nextcloud/fulltextsearch

OCC Fulltextsearch:index not working

Open
#659 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Hi,

I've standalone server of elasticsearch, when I run OCC fulltextsearch:test I get following result

.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

But when I do OCC fulltextsearch:index the result is [object Object]

I'm unable to understand what is the issue here.

NC version is 21 and both servers are communicating on public IP.

Can someone please help.

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 by reproducing the reported commands, occ fulltextsearch:test and occ fulltextsearch:index, against the standalone Elasticsearch server. Compare the successful test output with the [object Object] result from indexing and inspect the Nextcloud 21-to-Elasticsearch communication for a useful error. Done means indexing completes without that output and searchable content is available.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.