[Zope] search on multiple indexes
Stephan Goeldi
goeldi@goeldi.com
Tue, 20 May 2003 10:30:05 +0200
>Casey has a Product called "ZCatalogQuery" (or similar) which can
>do this.
I downloaded this product and installed it successfully. I don't understa=
nd,
how
I have to implement the new syntax now. My search form looks very simple:=
<form action=3D"found" method=3D"get">
<input type=3D"text" name=3D"PrincipiaSearchSource" width=3D5 value=3D"">=
<input type=3D"submit" value=3D"search">
I don't know, what piece I have to change here, to use the ZCatalogQuery
now (in DTML terms).
The 'found' method looks like this:
<dtml-in Catalog size=3D20 start=3Dquery_start>
<dtml-if sequence-start>
<dtml-if previous-sequence>
<a href=3D"<dtml-var URL><dtml-var sequence-query
>query_start=3D<dtml-var
previous-sequence-start-number>">
(Previous <dtml-var previous-sequence-size> results)
</a>
</dtml-if previous-sequence>
</dtml-if sequence-start>
<li><a href=3D"<dtml-var "Catalog.getpath(data_record_id_)">">
<dtml-var title></a></li>
<dtml-if sequence-end>
<dtml-if next-sequence>
<a href=3D"<dtml-var URL><dtml-var sequence-query
>query_start=3D<dtml-var
next-sequence-start-number>">
(Next <dtml-var next-sequence-size> results)
</a>
</dtml-if next-sequence>
</dtml-if sequence-end>
<dtml-else>
Nothing found!
</dtml-in>
----------------------
Goeldi.com - eBusiness
----------------------
www.goeldi.com
web@goeldi.com
Fon +41-61-7330555
Fax +41-61-7330556
----------------------