Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No search results at all with elasticsearch #364

Closed
dceee opened this issue Aug 21, 2018 · 4 comments
Closed

No search results at all with elasticsearch #364

dceee opened this issue Aug 21, 2018 · 4 comments

Comments

@dceee
Copy link

dceee commented Aug 21, 2018

I have extended my nextcloud server by elasticsearch by following the steps in https://fribeiro.org/tech/2018/02/07/nextcloud-full-text-elasticsearch/
Additionally I installed readonlyrest for authentication. After indexing I could search by issuing curl commands and got all the results expected. In Nextcloud however, the searchbox never returned a single result so far. The url configured for fulltext is identical with the one I am using for the curl search from the bash. How can I debug this problem? The logs I checked do not show any trace of my search attempts.
I am using Nextcloud 13.0.5 on centos 7.2., users authenticated by LDAP

Apps installed:

  • Full text search - Elasticsearch Platform v0.99.0
  • Full text search - Files v0.99.0
  • Full text search v0.99.0
@ArtificialOwl
Copy link
Member

What is the result of ./occ fulltextsearch:test ?

@dceee
Copy link
Author

dceee commented Aug 21, 2018

`[root@cloud2 ~]# occ fulltext: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
    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`

@dceee
Copy link
Author

dceee commented Aug 22, 2018

I noticed in a comment nextcloud/fulltextsearch_elasticsearch#31 (comment) that indexing has to finish first before you can use fulltextsearch in nextcloud. I had the same errors on my instance described there so I will make sure indexing is done before I try again.

@dceee
Copy link
Author

dceee commented Aug 28, 2018

I managed to complete indexing and finally could perform a full text search in Nextcloud.

@dceee dceee closed this as completed Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants