[Zope] DESPERATION: ZCatalog search madness

Hung Jung Lu hungjunglu@hotmail.com
Fri, 25 Feb 2000 18:31:34 PST


darran edmundson <dee12-@rsphy1.anu.edu.au> wrote:
>      3 object are indexed in Year (integer, FieldIndex)      3 object are 
>indexed in Journal (string, FieldIndex)      3 object are indexed in 
>Authors (string, TextIndex)

I am shooting in the dark, but here is one thing that
seems not right: your 'Year' index is integer. I think
ZCatalog only deals with strings. You may need to change
the integer to string. If 'Year' is a property created
inside Zope, try to use a string type instead of integer
type.

>Whereas this one returns an empty result:
>
><dtml-in "publicationCatalog(Authors='Kivshar',sort_on='Journal')">
>
>and this one causes a key error:
>
><dtml-in "publicationCatalog(Authors='Kivshar',sort_on='Year')">

I'll do some more experiments later, but first, change the
integer to string and see whether this fixes the problem on
the 'Year'.

Hung Jung

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com