fulltextsearch_elasticsearch
fulltextsearch_elasticsearch copied to clipboard
Results show the search in Files, But results not display on browser
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
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?
@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!