Coder Social home page Coder Social logo

Comments (5)

kevinkuan1969 avatar kevinkuan1969 commented on June 26, 2024

Using command below to check the difference between the two documents from successful user vs non successful user. The non successful user who cannot return any result from Elasticsearch contains NULL value in User field.

sudo -u www-data php occ fulltextsearch:document:platform files

image
image

from fulltextsearch.

wickeddoc87 avatar wickeddoc87 commented on June 26, 2024

we do have the same error with nextcloud 27.0.2 and elasticsearch:8.8.1.

@kevinkuan1969 have you been able to get fulltext search to work with non admin useres?

from fulltextsearch.

wickeddoc87 avatar wickeddoc87 commented on June 26, 2024

I’ve really been chasing this bug for 2 weeks now and I can now reproduce it too…

The problem is the user and/or groupname!

user:
test = working
test3 = working
test 3 = not working
Test_3 = not working…

group:
testgroup, test3group = working
test group = is not working

The username has to be a simple string of letters and numbers, as soon as there is a special character, a space or something else, the fulltext search no longer works!

see: #768

from fulltextsearch.

vbier avatar vbier commented on June 26, 2024

It looks like this also breaks search for LDAP users. With a fresh install, search only works for some locally created users, and returns no results for LDAP users. This might be caused by the fact that LDAP users in my instance have user ids like 60F6372C-F199-4C5E-904F-287360B07F46.

The problem is easy to reproduce. Install AIO with the Fulltext-Search enabled. Create two users, one named "local" and one named "local-user". Log in with both users so that documents exist and create the index afterwards by calling

occ fulltextsearch:index

This works without errors, but searching (e.g. for term yours) only works for user "local", regardless if you search from the command line or the web interface:

dafc642965c4:/var/www/html$ php occ fulltextsearch:SEARCH local yours
search
> Files
 - 2433 score:0
 - 2450 score:0
dafc642965c4:/var/www/html$ php occ fulltextsearch:SEARCH local-test yours
search
> Files
dafc642965c4:/var/www/html$ 

from fulltextsearch.

XueSheng-GIT avatar XueSheng-GIT commented on June 26, 2024

Does this issue still exist with the latest fulltextsearch releases? There were some changes in regards to indexing and users.

from fulltextsearch.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.