[Zope3-Users] TextIndexNG3 and Zope3

Andreas Jung lists at andreas-jung.com
Thu Dec 29 09:45:59 EST 2005

--On 29. Dezember 2005 15:15:33 +0100 Frank Burkhardt <fbo2 at gmx.net> wrote:

> Hi,
> currently I'm trying to use TextIndexNG3 in Zope3. I'm able to add a
> "Ting3 Index" to my catalog but there are some problems:
> 1. After I added a single object, the catalog statistic (Advanced-Tab)
> shows    a table like this:
> index     | document count | word count
> ----------+----------------+-----------
> textindex | 1              | 15
> ting3     | 1              | 1
>    Why is TextIndexNG3's wordcount 1? The object I'm trying to index
>    contains 15 words.

Look yourself at the indexed content. There is now TTW support to look
at the indexed content like in Zope 2. You have to use the API for the 
lexicon to perform further investigations.

> 2. Where am I supposed to enable/disable all the ting3-features (i.e.
>    stemming)? There are no configuration options when I add the index to
> the    catalog.

The _real_ index implementation is in textindexng/index.py which provides 
access to all parameters. ting.py is a _wrapper_ around the index 
implementation to integrate it with Z3. It was provided by Ivo I think.
The wrapper likely needs more work. Since it is a very think wrapper it 
should not be so hard to pass through all possible parameters..I won't work 
on this issue...patches and contributions are welcome.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope3-users/attachments/20051229/b8c03da2/attachment.bin

More information about the Zope3-users mailing list