PhpDig.net

Go Back   PhpDig.net > PhpDig Forums > Troubleshooting

Reply
 
Thread Tools
Old 12-10-2004, 11:49 AM   #1
alan-s
Green Mole
 
Join Date: Dec 2004
Location: London
Posts: 4
No summary and cant reindex

I have been testing phpdig 1.8.4 but cant seem to get a sensible result. I get either end of a paragraph as summary or no summary. My config looks like this
Code:
define('SUMMARY_DISPLAY_LENGTH',250);            //Max chars displayed in summary
define('SNIPPET_DISPLAY_LENGTH',250);            //Max chars displayed in each snippet

define('DISPLAY_SNIPPETS',true);                 //Display text snippets
define('DISPLAY_SNIPPETS_NUM',4);                //Max snippets to display
define('DISPLAY_SUMMARY',true);                 //Display description
I also get cant reindex thru the web admin all the time (grrr).

I was using version 1.6 but have attempted an upgrade as phpinclude exclude seemed a bit intermittent.

Whats thie difference betwwen a summary and a snippet?


Sorry for so many q's....in one post.

Grateful for any pointers

alans
alan-s is offline   Reply With Quote
Old 12-10-2004, 02:23 PM   #2
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
  • The difference between DISPLAY_SUMMARY and DISPLAY_SNIPPETS:
    PHP Code:
    // code in search_function.php
    if (DISPLAY_SUMMARY) {
        
    $table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($textSUMMARY_DISPLAY_LENGTH'@@@')));
    }
    if (
    DISPLAY_SUMMARY && DISPLAY_SNIPPETS) {
        
    $table_results[$n]['text'] .= "\n<br/><br/>\n";
    }
    if (
    DISPLAY_SNIPPETS) {
        if (
    $extract) {
            
    $table_results[$n]['text'] .= $extract;
        }
        else if (!
    $table_results[$n]['text']){
            
    $table_results[$n]['text'] = phpdigHighlight($reg_strings,ereg_replace('(@@@.*)','',wordwrap($textSUMMARY_DISPLAY_LENGTH'@@@')));
        }

  • How phpdigExclude and phpdigInclude work:

    http://www.phpdig.net/forum/showthread.php?t=1430

  • How to reindex:

    http://www.phpdig.net/forum/showthread.php?t=1579
__________________
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
Old 12-11-2004, 11:46 AM   #3
alan-s
Green Mole
 
Join Date: Dec 2004
Location: London
Posts: 4
Read that , understood - problem still exists

Quote:
[*] How phpdigExclude and phpdigInclude work:

http://www.phpdig.net/forum/showthread.php?t=1430

[*] How to reindex:

http://www.phpdig.net/forum/showthread.php?t=1579[/list]
Thanks for the links but after 6 hours setup/config testing i had already read them twice. I still can't get a phpdigExclude to work, its on its own new line. And reindexing via web admin simply refuses every time with 'Document already exists' feedback. I have searched here and read but dont see a potential solution/answer except for cron jobbing. But i can't be bothered to do this (lazy managed hosting takes ages to do my bidding) without some certainty of reward - i got a site to run and need to redevelopment tempates with phpdiginclude and exclude tags....

I think i should probably turn on debugging and test again. Weird thing is some templates work with the phpdigincludes and some do not. Any they are identical!

Any other pointers welcome.

alans
alan-s is offline   Reply With Quote
Old 12-11-2004, 12:01 PM   #4
alan-s
Green Mole
 
Join Date: Dec 2004
Location: London
Posts: 4
Eureka -phpdigexcludes working now

I finally fathomed the problem - it was a small dreamweaver version difference which meant that the html and template files had suddenly got themselves mangled and were not updating properly. As a result some hand editing sorted the problem and reindexing via web admin seemed to work too.

Hoorah!

alans
alan-s 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
Removing extra text from summary in results philcheese How-to Forum 0 10-12-2007 04:26 AM
Search term not in page summary pothompson Troubleshooting 0 09-06-2006 09:58 AM
Chunk Size and Summary Length vispa How-to Forum 1 02-26-2005 08:01 PM
Reindex without cron job? ark2424 How-to Forum 8 12-09-2004 05:54 AM
bad update or reindex mleray Troubleshooting 2 10-30-2004 03:32 PM


All times are GMT -8. The time now is 08:35 PM.


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