Re: [Zope] TextIndexNG QueryParser Difficulties
As stated in my last posting this method is for testing purposes. As a workaround create your own search form and call the catalog instance directly....that's just a few lines of code. -aj --On Donnerstag, 17. April 2003 8:44 Uhr +0200 Thierry FLORAC <thierry.florac@onf.fr> wrote:
On Thursday 17 April 2003 06:34, 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.
Hi,
As explained in a previous message, I have the same problem with TextIndexNG-1.09. I've deleted and recreated my indexes several times, with different parameters (with or without stemmer...) without result. So, when I : - test the index in the ZMI throught the "Test" tab, - click on a word in the index vocabulary, - query the index using a "NEAR" or "PHRASE" search (using double quotes), I receive an error message. For example :
Exception Type : KeyError Exception Value : if_catalog
Traceback (innermost last):
* 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_Let, line 75, in render * Module DocumentTemplate.DT_Util, line 201, in eval __traceback_info__: getDocumentsForWord * Module <string>, line 0, in ? * Module Products.TextIndexNG.TextIndexNG, line 851, in getDocumentsForWord * Module Products.TextIndexNG.TextIndexNG, line 843, in _getCatalog * Module OFS.Traversable, line 120, in unrestrictedTraverse __traceback_info__: ([], 'if_catalog') * Module OFS.Application, line 108, in __bobo_traverse__
Where 'if_catalog' is the ID of my catalog...
Simple queries just using "AND" or "OR" operators work fine. Please, please, HELP !!!
Thierry
participants (1)
-
Andreas Jung