Search in administration not showing any results

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Search in administration not showing any results

Post by kai »

I thought I had already seen this mentioned here or on the bugtracker, but can't find it now, so I post a new one.
It seems the full text search in the administration suddenly stopped working for me. I think it worked for me before with this version. The only thing that works is entering nothing which lists all articles (of course).
This is 2.0.1, but I don't see that a bug like this got fixed in 2.0.2.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

please use the search in the bugtracker. This is already fixed in CVS.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Post by kai »

Ah, thanks, I just looked at the list. This bug is closed, so it wasn't in the list anymore. You know, I already filed a bug against the bugtracker. This just adds another nuisance, you cannot search by status or change the roder. This bugtracker is one of the worst I've ever worked with. You should consider moving to a better one, for instance Flyspray.

Anyway, back to this bug. I don't want to upgrade to 2.0.2 as this forces me to add all of my customizations again. So, I looked around which pages need to be changed and figured it has to be record.show.php. After replacing with that the search for id started to work. The full text search still didn't work, so I had a look at the produced SQL and found the "IN BOOLEAN MODE" in Myslq.php. This doesn't work on MySQL 3.23 that I'm using on this machine. Everything else works just fine, so if you made $against dependant on MySQL version you could loosen the requirement of MySQL >= 4.

I then had a deeper look at the text match and boolean MySQL functions and I think the current usage is not what most people would like to have. The reason is that searching with wildcards is not possible and the matching always occurs against full words. As an example: the full text search for "Tutorial" finds only "Tutorial" and not "Tutorials" and using something like "Tutorial*" or "Tutorial%" is impossible in this search type. If you want to search for both Tutorial and Tutorials you have to search for "Tutorial Tutorials".
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Post by kai »

Stop, ab 4.0.1 funktioniert die MATCH-Suche mit Wildcards wohl.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

phpMyFAQ 2 funktioniert deswegen auch nicht mehr mit MySQL < 4.0.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
kai
Posts: 82
Joined: Sun Jul 03, 2005 5:39 pm

Post by kai »

That is what I figured then. But that's the only thing I can't see that doesn't work. I also see that in early versions there was a check for MySQL < 4.0.1 which made it seemlessly run without changing the code ;-). Just one line of code makes this difference.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I removed the check because the check is now in the installer.

If you run a really old and unsupported version of MySQL you really have bigger problems than a not functional full text search.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply