26 Sep
2003
26 Sep
'03
6:15 p.m.
David Little wrote at 2003-9-26 16:17 +0100:
I have a Product class ( OrderedFolder, PropertyManager ) which adds a zCatalog(id = 'Catalog' ) when it is created.
A batch process uploads a file which contains the data to add objects of class tPatient( CatalogAware, OrderedFolder, PropertyManager ).
Catalog has a fieldIndex on 'surname'.
After the upload the patients appear in the Catalog but the ZSearchInterface form will not return any results. Search on null input produces all the tPatients.
Apparently, the initial cataloging happens too early (before "surname" is defined). The intial cataloging is performed in "_setObject". When you change something later, you have to call "index_object" again. Dieter