[Zope-dev] NOT in Field and Keyword Indexes
Johan Carlsson [Torped]
johanc@torped.se
Sat, 06 Jul 2002 16:57:35 +0200
At 11:04 2002-07-06 +0200, Johan Carlsson [Torped] said:
>I intend to release my code on zope.org, but first I though I'd write some=
=20
>unit tests.
Ok, writing the UnitTest took more time that writing the Index :-)
Here it is any way:
http://www.zope.org/Members/johanc/EasyIndexes
Usage:
Not 'a' in foo:
record =3D { 'foo' : { 'query' : ['a']
, 'operator' : 'not'
}
}
Not ( 'b' or 'e' ) in foo:
record =3D { 'foo' : { 'query' : ['b','e']
, 'operator' : 'notor'
}
}
Not ( 'b' and 'e' ) in foo:
record =3D { 'foo' : { 'query' : ['b','e']
, 'operator' : 'notand'
}
}
--=20
Torped Strategi och Kommunikation AB
Johan Carlsson
johanc@torped.se
Mail:
Birkagatan 9
SE-113 36 Stockholm
Sweden
Visit:
V=E4stmannagatan 67, Stockholm, Sweden
Phone +46-(0)8-32 31 23
Fax +46-(0)8-32 31 83
Mobil +46-(0)70-558 25 24
http://www.torped.se
http://www.easypublisher.com