[htdig] Help Paging Results

Subject: [htdig] Help Paging Results
From: Brian Paulson (webmaster@CHIEFTAIN.COM)
Date: Mon Aug 07 2000 - 13:41:55 PDT


        I am Using htdig to index our newspaper. While I have Htdig Installed and
working ok using php for the forming of the results pages. I am having
trouble paging the results I have it set in the Conf file to return 20
results but for some reason it is returning only half of what ever I put in
the Config file.

example: http://www.chieftain.com/search

Use the Archive search and search for Cement and you should get a couple of
I am also echoing out The value of i and rc for the while loop

 while($i<$rc) {
                //echo "<br>$result[$i]\n";
                $title = $result[$i];
                $url = $result[$i+1];
                $percent = $result[$i+2];
                $excerpt = $result[$i+3];
                                // Modify Domain name to match where we want it to go.

                                $modurl = ereg_replace("http://www.chieftain.com","", $url);

                 // Display Matching Results
                  echo "<table border=0 width=100% cellpadding=0>\n<tr>\n<td width=100%
class=\"publish\" colspan=2>\n";
          echo "<p><A HREF=\"http://www.chieftain.com/display.htm?url=" .
$modurl . "\">" . $title . "</A><BR>\n";
                  echo "</td>\n</tr>\n<tr>\n<td bgcolor=#EAEAFF width=30%>\n";
          echo "(" . $percent . "% match)<BR>\n";
                  echo "</td>\n<td width=70%></td>\n</tr>\n<tr>\n<td width=100%
          echo "<blockquote>" . $excerpt .

Any Help Would be appreciated.

Thank you
Brian Paulson
Sr. Web Developer
1-800-279-6397 X207

To unsubscribe from the htdig mailing list, send a message to
You will receive a message to confirm this.

This archive was generated by hypermail 2b28 : Mon Aug 07 2000 - 04:13:58 PDT