[Zope] search engine question

Alexander Batzios alexb@runbox.com
Wed, 3 Apr 2002 20:54:31 -0800


This is a multi-part message in MIME format.

------=_NextPart_000_0023_01C1DB51.C06EB800
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all. I am implemmenting a search engine with Zope. I have it running =
and all, but there are three features I'm trying to implement:

1. Allow the user to select the number of results per page.=20
I cannot seem to be able to put a variable in the field specifying the =
number of results per page.
Also, how can I define that all results should be displayed in the same =
page (in case the user selects so).

2. Number the results
How can I put a number next to each result? For e.g. in results 10-20, =
have numbers 10,11,12 next to every result

3. Show the total number of results
Is there a way to calculate the total number of results?


Well, any help will be greatly appreciated. I am still getting used to =
Zope programming and DTML. The search engine works by querying a mySQL =
database, in case it makes any difference.

Thanks,
Alex


------=_NextPart_000_0023_01C1DB51.C06EB800
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2715.400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all. I am implemmenting a search =
engine with=20
Zope. I have it running and all, but there are&nbsp;three features I'm =
trying to=20
implement:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1. Allow the user to select the number =
of results=20
per page.&nbsp;</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I cannot seem to be able to put a =
variable in the=20
field specifying the number of results per page.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Also, how can I define that all results =
should be=20
displayed in the same page (in case the user selects so).</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>2. Number the results</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>How can I put a number next to each =
result? For=20
e.g. in results 10-20, have numbers 10,11,12 next to every =
result</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>3. Show the total number of =
results</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is there a way to calculate the total =
number of=20
results?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Well, any help will be greatly =
appreciated. I am=20
still getting used to Zope programming and DTML. The search engine works =
by=20
querying a mySQL database, in case it makes any difference.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Alex</FONT></DIV>
<DIV>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_0023_01C1DB51.C06EB800--