grav-plugin-tntsearch icon indicating copy to clipboard operation
grav-plugin-tntsearch copied to clipboard

Indexing succeeds, searching give no results

Open rvreugde opened this issue 4 years ago • 14 comments

Hello,

I am using the TNTSearch plugin (v3.3.0) with my Grav site (v1.6.30) but I encounter a problem. The site is running on Apache/PHP on a CentOS 8.2 server.

Indexing succeeds, without a (visible) problem (via admin page or cli): image

But, when I want to search, it gives no result! image

Can somebody help?

Regards, Raf

rvreugde avatar Dec 14 '20 10:12 rvreugde

Maybe related to https://github.com/trilbymedia/grav-plugin-tntsearch/issues/107

janousek avatar Dec 18 '20 06:12 janousek

Hi, i am still facing this issue. Grav is running with the official grav docker image, somehow it gives 0 results; tntsearch index via cli works. Any ideas?

jraack avatar Feb 25 '21 11:02 jraack

Can someone provide a zip of a test site so we can try to reproduce this?

rhukster avatar Feb 25 '21 13:02 rhukster

Can someone provide a zip of a test site so we can try to reproduce this?

I believe this is already fixed in this commit, but a new release hasn't been prepared yet.

Manually updating that file with that change fixes the tnt-search queries instantly.

kees-closed avatar Feb 25 '21 14:02 kees-closed

I will investigate this and get a release out.

rhukster avatar Feb 25 '21 14:02 rhukster

Please try again with 3.3.1 (when it shows up in GPM)

rhukster avatar Feb 25 '21 20:02 rhukster

Please try again with 3.3.1 (when it shows up in GPM)

It still works here after updating the plugin. Perhaps @jraack can give it a go as well?

kees-closed avatar Feb 26 '21 09:02 kees-closed

Hi, Thanks for your replies.

I have updated tntsearch, by running the Docker image i dont get results, on a local test, running via php -S it works after re-indexing. in docker RUN cd /var/www/html/ && php bin/plugin tntsearch index Is there an additional config needed for the docker image to run tntsearch? Maybe write access?

The update of tntsearch works as you suggested, only thing is i get 0 results.

jraack avatar Feb 27 '21 10:02 jraack

I still don't get results when i run the grav instance and plugin tntsearch on the Docker Image. Any ideas? In docker i get a completed indexing. Really weird.

jraack avatar Mar 15 '21 15:03 jraack

@rhukster Nevermind this issue. It was not installing the tntsearch plugin, and i was indexing before it was completed. So it has been fixed.

jraack avatar Mar 17 '21 10:03 jraack

unfortunately when i try to re-index it gives me an error Invalid resource theme://

Any suggestions?

jraack avatar Mar 17 '21 13:03 jraack

What version of Grav / TNTSearch and PHP?

rhukster avatar Mar 17 '21 15:03 rhukster

PHP7.4 (apache), TNTSearch latest 3.3.1, Grav latest

jraack avatar Mar 18 '21 09:03 jraack

I'm still having this issue Indexing succeeds and shows it's indexed all my pages. I don't see any errors but there are no results. Grav 1.7.38 TNTSearch 3.3.1 PHP 7.4.13 (IIS)

darrenhollick avatar Jan 27 '23 02:01 darrenhollick