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

Results show the search in Files, But results not display on browser #244

Open
zvwhome opened this issue Feb 21, 2023 · 1 comment
Open

Comments

@zvwhome
Copy link

zvwhome commented Feb 21, 2023

I try search on fulltextsearch, It show text "the search in Files for "new" returned 318 results in 284 ms", But results not display on browser
2023-02-20-02
NC Version : 25.0.3
Elasticsearch: 7
Check list:
systemctl status elasticsearch --> active (running)
sudo -u www-data php /var/www/html/nextcloud/occ fulltextsearch:test --> pass
sudo -u www-data php /var/www/html/nextcloud/occ fulltextsearch:index --> finish
sudo -u www-data php /var/www/html/nextcloud/occ fulltextsearch:live --> waiting
curl -XGET 'localhost:9200/_search?q=test&pretty' --> working
Completed list
/usr/share/elasticsearch/bin/elasticsearch-plugin remove ingest-attachment
/usr/share/elasticsearch/bin/elasticsearch-plugin install ingest-attachment
sudo systemctl restart elasticsearch && sudo systemctl status elasticsearch

Could you please advise me?

@R0Wi
Copy link
Member

R0Wi commented Jun 3, 2023

@zvwhome I had a similar issue and in my case the query successfully returned from ES, that's why the number of results is showing. The problem was in the improveSearchResults function, which is called right after the query returned to form the final result (see here). If that's the case, you should be able to see error log messages like

Exception while improving searchresult: ...

in your server logs (you might need to decrease your loglevel first). In my case I was able to figure out what went wrong internally by inspecting these messages (in my case some files haven't been found...). Good luck!

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