[Zope-dev] Wildcards in TextIndex query. Do they work?

Erik Enge erik@thingamy.net
Tue, 29 May 2001 15:44:59 +0200 (CEST)


On Thu, 24 May 2001, Michel Pelletier wrote:

> I don't think you are using a globbing vocabulary.

I think I am:

>>> print_info(applic.Catalog(word='scripto*'))
unsplitted ['scripto*']
unl: ['scripto*']
unq: [104623, 'or', 112198, 'or', 151568]
Length: 6
Content: [<mybrains instance at 1226d358>, <mybrains instance at 127bb540>, <mybrains instance at 12bd8138>, <mybrains instance at 127bb658>, <mybrains instance at 1226c620>, <mybrains instance at 12092eb0>]
>>> print_info(applic.Catalog(word='(scripto*)'))
unsplitted []
unsplitted ['scripto*']
unl: ['scripto*']
unsplitted []
unl: [['scripto*']]
unq: ['scripto*']
unq: [['scripto*']]
Length: 0
Content: []
>>>

the unsplitted, unl and unq are my debug flags, but you can see what
happens: without parens the '*' has it's desired effect, with, it doesn't.

Got a clue?  Is this my bug, or ZCatalog's?