nextcloud / fulltextsearch_elasticsearch

🔍 Use Elasticsearch to index the content of your Nextcloud
https://apps.nextcloud.com/apps/fulltextsearch_elasticsearch
GNU Affero General Public License v3.0
81 stars 30 forks source link

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

Open zvwhome opened 1 year ago

zvwhome commented 1 year ago

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 commented 1 year ago

@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!