[z3-five] Some design questions
Andreas Jung
lists at andreas-jung.com
Mon Apr 18 18:44:45 MEST 2005
In TextIndexNG2 I worked a lot with auto-configured registries for parsers
(by language), converters
(by mime-type), stopwords (by language) etc. For a given key the registry
returned a corresponding class
or class instance....lots of implicit magic....In V3 I want to make things
more configurable. What is the way
to go? Extending ZCML? E.g. I want to register a converter class in html.py
for a list of mime-types..a class
handling stopwords should be configured for a set of languages (but only
those languages were we have existing
word lists). Another problem is efficiency....if an index handles only one
language then subsequent lookups
for the same language dependant classes (always the german stopwords etc.)
must be cached somehow (it does not
make sense to re-read the same stopword files over and over again).
What is the best way to address these problems?
Andreas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://codespeak.net/pipermail/z3-five/attachments/20050418/6793c97d/attachment.bin
More information about the z3-five
mailing list