I'm pretty desperate...I have a site that has products named things like P1060 etc...searching on P1060 works fine, searching on 1060 returns nothing.
Searching on 1060 P1060 with and operator gives nothing.
Searching on P1060 1060 with or operator gives nothing.
Searching on 1060 P1060 with or operator gives results!!!!
Am i missing the point here? Or are there known bugs with this?
Should I be dropping back to an earlier version of Phpdig? if so which one?
Any help would be greatfully received.
thanks
Andrew
Ok i did a kind of code work around :-/
In the search.php before it does the search....i send the search string to a function and check if its a lone integer, if it is....i prefix my P in front of it and search on "P1060 1060". Version 1.8.2 [Archive] - New Doom Forums:: 64 posts - Last post: Oct 22, 2004I'll upload a fixed 1.8.2 later today (same version number). . I just updated from v1.8.0 to this new 1.8.2 version. http://forums.newdoom.com/archive/index.php/t-24501.htmlHOME |
Its pretty ugly, cos the search field displays the "P1060 1060". But hey...at least they can definitely search on the product codes now. Oh and I made the search type "any".
function check_int($i) {
// return 0 if not int and return 1 if $i is int
if (ereg("^[0-9]+[.]?[0-9]*$", $i, $p)) {
return 1;
} else {
return 0;
}// end if
}// end check_int
if (check_int($query_string)==1)
{
$query_string = "P".$query_string." ".$query_string;
$option = "any";
//echo $query_string;
}
//**
phpdigSearch($id_connect, $query_string, $option, $refine, News - Array.org EeePC Ubuntu Repository:: As a result, I had to divest some funds from the "Beer Fund" and direct them to .. Upgraded madwifi to r3862; Upgraded rt2860 wireless to v1.8.0.0 http://www.array.org/ubuntu/news.htmlHOME |
$refine_url, $lim_start, $limite, $browse,
$site, $path, $relative_script_path, $template);
OOOPs I got two examples wrong there....
Searching on 1060 P1060 with and operator gives nothing.
Searching on P1060 1060 with or operator gives results!!!!
Searching on 1060 P1060 with or operator gives nothing at all.
» Basic RadLinker Guide:: 30 posts - Last post: Mar 31, 2004When adjusting the MHz you may see some weird number jumps, RadLinker uses your true .. But I do have it while using RadClocker v1.8.0.1. http://www.driverheaven.net/windows-xp-2k-radeon-display-drivers/38087-basic-radlinker-guide.htmlHOME | БАСТА - INFOSTORE.ORG:: Apr 3, 2008 Search.Pro.v2.0.Business.PHP.NULL-DGT 2 0 7059 Скачать ключ для Toolbar for Internet Explorer MSN Search Toolbar 3DMiracle v1.73 http://infostore.org/info/5246604HOME | Ok i've noticed something else with further testing. Is it correct that Phpdig only recognises part words if they are the start of the word??
ie
searching for respon will find respond
searching for pond doesn't find respond. hence my problem if people search for the number only 1060 in a part number P1060?????
Could someone clarify this for me.
cheers
Andrew
Hm i think i found my reason, but not an answer...(see quote below).
I tried dropping the mim word size to 1 and then 0 but to no effect.
So does this mean in P1060 the P is a word that is too small to index and the number isn't indexed, and together they aren't considered a word...
I found a site that worked for what i want, but the reference was AAA12345 three letters and the number......
Andrew
3.2. Full Text Indexing
PhpDig indexes all words of a document, excepting small words (less than 3 letters) an common words, those are definded in a text file.
Lone numbers are not indexed, but those included in words are indexed.
Welcome to the forum, Andrew. We're glad you could join us. :D
Perhaps this thread (http://www.phpdig.net/showthread.php?s=&threadid=146&highlight=numbers) would help. :)
Nortel Unveils Vision, Strategy for Israeli High-Performance Net
Busy Friday Leads to Strong Close for Net Stocks
|