PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > How-to Forum

Reply
 
Thread Tools
Old 12-30-2003, 06:22 AM   #31
mkst
Green Mole
 
Join Date: Oct 2003
Posts: 11
Upgrading seems that works.
Thanks!

The engine can find both greek and english words.
However, there two more issues.
1. Example: The search for "äåëöß*éá" and "äåëÖß*éá" (change the case of a single letter) gives exactly the same results, however, the keyword does not appear in the description. The description shows only the first sentence of the html file.
2. There are no results displayed if i forget to place the accent.

I solved the second problem by replacing the
PHP Code:
$phpdig_string_subst['iso-8859-7'] = 'A:A,a:a'
with
PHP Code:
$phpdig_string_subst['iso-8859-7'] = 'A:A,a:a,é:ßú,á:Ü,å:Ý,ç:Þ,ï:ü,õ:ýû,ù:þ'
(vowel without accent:vowel with accent,vowel with diaeresis)

Is this all right? I noticed that there are fewer entries in the keywords table (were 1232, now 1204).
Any ideas about 1.?

Thanks!
mkst is offline   Reply With Quote
Old 12-30-2003, 06:48 AM   #32
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Hi. Are you sure your MySQL charset is latin1? As for number one, do you have define('DISPLAY_SNIPPETS',true); in the config file?

If so then try increasing define('SNIPPET_DISPLAY_LENGTH',150); and/or define('DISPLAY_SNIPPETS_NUM',4); in the config file.

Also, in search_function.php find the following:
PHP Code:
while($num_extracts DISPLAY_SNIPPETS_NUM && $extract_content fgets($f_handler,1024)) {
      if(
eregi($reg_strings,$extract_content)) {
         
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($match_this_spot))); 
There is a typo (not related to number one):
PHP Code:
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($match_this_spot))); 
should be:
PHP Code:
$match_this_spot str_replace('<','&lt;',str_replace('>','&gt;',trim($extract_content))); 
Now for number one, decrease 1024 in fgets($f_handler,1024) in the above code to something like 200.
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
I want search RUSSIAN (ISO-8859-5) language in PHPDig, How to ??? Ivan How-to Forum 1 09-26-2003 04:30 PM


All times are GMT -8. The time now is 02:31 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.