[Zope] TextIndexNG QueryParser Difficulties

Steve McMahon steve@reidmcmahon.com
Thu, 17 Apr 2003 09:00:38 -0700


Hi Andreas,

Thanks for your great work on TextIndexNG!

You're right about the problem with the 'Test' tab being cosmetic. 
However, I'm running into the same problem (basically identical 
traceback) with my own search methods whenever I do a phrase (with 
quotes) or near search.

Thanks, Steve

Andreas Jung wrote:
> This problem *should* be fixed in 1.09. But you need to recreate the index.
> Btw. this problem is only of cosmetic nature since the core 
> functionality remains untouched.
> This method is for testing purposes only.
> 
> -aj
> 
> --On Mittwoch, 16. April 2003 15:08 Uhr -0700 Steve McMahon 
> <steve@reidmcmahon.com> wrote:
> 
>> Greetings,
>>
>> I'm trying to get up-to-speed on TextIndexNG and am doing well with
>> simple queries. However, if I quote search text, the search returns with
>> a KeyError indicating it can't find the catalog. The same error shows up
>> when I try to use either of the QueryParsers tests on "Test" tab of the
>> index -- even for the most trivial or empty queries.
>>
>> I'll bet I missed something in the set up, but I can't figure out what.
>> Anyone run into this?
>>
>> The traceback, in case it's helpful:
>>    Module ZPublisher.Publish, line 98, in publish
>>    Module ZPublisher.mapply, line 88, in mapply
>>    Module ZPublisher.Publish, line 39, in call_object
>>    Module Shared.DC.Scripts.Bindings, line 252, in __call__
>>    Module Shared.DC.Scripts.Bindings, line 283, in _bindAndExec
>>    Module App.special_dtml, line 174, in _exec
>>    Module DocumentTemplate.DT_Util, line 201, in eval
>>     - __traceback_info__: parser
>>    Module <string>, line 0, in ?
>>    Module Products.TextIndexNG.TextIndexNG, line 818, in testTextIndexNG
>>    Module Products.TextIndexNG.TextIndexNG, line 843, in _getCatalog
>>    Module OFS.Traversable, line 120, in unrestrictedTraverse
>>     - __traceback_info__: ([], 'Catalog')
>>    Module OFS.Application, line 108, in __bobo_traverse__
>> KeyError: Catalog
>>
>> -- 
>> ______________________________________________________
>>
>> Steve McMahon
>> Reid-McMahon, LLC
>> steve@reidmcmahon.com
>> steve@dcn.org
>>
>>
>> _______________________________________________
>> Zope maillist  -  Zope@zope.org
>> http://mail.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 
> 
> 
> 
> 
> 

-- 
______________________________________________________

Steve McMahon
Reid-McMahon, LLC
steve@reidmcmahon.com
steve@dcn.org