[Zope] Field index problem
Andreas Jung
lists at andreas-jung.com
Thu Nov 20 11:25:30 EST 2003
FieldIndexes are not TextIndexes and vice versa. You can not have both
except you
write your own customized index that fits your needs or you create a
fieldindex and
a textindex for the attribute and do some magic post-processing.
-aj
--On Donnerstag, 20. November 2003 17:08 Uhr +0100 Jean Baltus
<jean.baltus at africamuseum.be> wrote:
> Hi all,
>
>
>
> I'm using a Field Index to index the "lastname" attribute of some
> content types. I would like to be able to search on those content types
> for lastnames which start with 'b' for instance. But I can't do a
> truncated search (B*) for a field index.
>
>
>
> Is there any way I can do that. TextIndex doesn't suit my needs as a
> lastname can contain several words. So B* would also match "Van Bil" .
>
>
>
> Any ideas on how I can achieve this ?
>
>
>
> -- Jean
>
More information about the Zope
mailing list