[Zope] ZCatalog bobobase_modification_time searching

Jaroslav Lukesh lsh@wo.cz
Mon, 16 Sep 2002 16:34:15 +0200


| Odes=EDlatel: Dieter Maurer <dieter@handshake.de>
| Jaroslav Lukesh writes:
|  > I want to search documents that are older than specified date and ma=
il
|  > results
|  >=20
|  > So I add Zcatalog, at Index I was set bobobase_modification_time and
do
|  > process with Add Zsearch interface.
|  >=20
|  > But I dont know right question for bobobase_mod_time.
| Read the ZCatalog sections in the Zope book. Look for "range" queries..=
=2E

Thanks, Dieter. I have read book, but nothing func OK. At your earlier
response to someone you reccomens to search google for dieter bobobase...
string. IT IS THE BEST THING to search archive for your name!

So I today make 3 new catalogs + have one from last week with different
settings
and try many methods found in first half of 200MB mailinglist archive (If=
 I
will have spare time, I will search the second half :).

www.zope.org\Members\Zen\howto\AdvZCatalogSearching

So that code with little debug and tweak works. Maybe this will help to
somebody:

<dtml-in "zaprdek3(bobobase_modification_time=3D_.DateTime() -60,
bobobase_modification_time_usage=3D'range:max')">60 days old item: <dtml-=
var
"zaprdek3.getpath(data_record_id_)"><br> </dtml-in>=20

And third version zaprdek3 (in english fouled egg) :o) of catalog works:

Add ZCatalog, go into, klick Indexes, select&delete Principia..., go back=
,
klick FondObjects, select DTML Documents and Files, at last field select
View (dont touch anything else fileds!!!) and submit. After Total CPU tim=
e:
21.467491912368132 (2002-09-16 13:39) zaprdek3 contains 176 record(s). If
you dont delete Principia, CPU time will be taken 15x more.

Many thanks for your helps and kicks to someone, in past and future.

BTW, does somebody know syntax of "Expr" field? I do not index files in
"some" folder?

Best Regards J. Lukesh