PDA

View Full Version : Numbers


BernhardG
10-10-2003, 02:44 AM
Hi,

I found thousands of bugs ;-)
It is not possible to search for numbers like 2.0, , 220, Everytime i read "no results" but these words are found in the keywords table. Think of you would like to index a site about cars and a visitor tries to search for the two words 2.0 and engine. He then gets only results for the word engine because phpDig thinks that 2.0 is too short. Ok, next example: if someone searches for "2.0 l"... he then sees a list of all entries with 2.0 found in them. phpDig complains about the length of the string l - it is too short. But if I use quotes I would like to search for the whole string and it has a length of 5 chars.
Next bug: If I search for "2 liter" with exact match turned I see the php error message "Warning: Supplied argument is not a valid MySQL result resource in /var/www/phpdig/libs/search_function.php on line 164" and additionally the massage that \2 is too short.
Sorry that I have not enough time to find and eleminate these bugs.

Bernhard

btw: you can test this on my home server at
http://voyager.homelinux.org/phpdig

Charter
10-10-2003, 04:29 AM
Hi. This thread (http://www.phpdig.net/showthread.php?threadid=119) has a temporary fix for the MySQL error, although it doesn't address the other problems you mention. The search will be reworked in a future release. ;)

BernhardG
10-10-2003, 05:20 AM
Thank your for the link. :-)
If you or someone else needs help developing a new better indexer you could look at the indexer of phpCMS. It has many features but can't respider yet (you have to spider all sites again at the moment). But If you look for number routines or special treatment of tags a look to the source code is a good action!

Bernhard