[Zope] Odd ZCTextIndex behavior
jim at ebizq.net
Thu Oct 30 13:35:08 EST 2003
I'm forcing it to a str() as soon as I pull it off the request object. I
think there may be something else going on in the Catalog object.
It appears that any query that starts with a '*' gets the leading
wildcard dropped. We have tons of articles on 'WebSphere', searching for
'*sphere' finds entries with 'sphere' alone, 'w*sphere' properly find
I think I'll peruse the ZCatalog source and see if that gives me any
However, do any Zope guys have a good explanation for why that happens?
Would patching that be a bad thing?
From: Lee J. McAllister [mailto:ljmcallister at hotmail.com]
Sent: Thursday, October 30, 2003 1:26 PM
To: dwilson at abrazohealth.com; Jim Kutter; zope at zope.org
Subject: RE: [Zope] Odd ZCTextIndex behavior
What's the likelyhood that Python is playing silly buggers with type's?
python a bare '451' will generally look like, and be converted to, an
Integer instead of a string. If that's not caught and forcibly
properly it could cause something like what you're describing.
>sounds like it's not a problem then. Try searching for *451. If that
>works, then you only need 1 wildcard.
> -----Original Message-----
> From: Jim Kutter [mailto:jim at ebizq.net]
> Sent: Tuesday, October 28, 2003 9:28 AM
> To: zope at zope.org
> Subject: [Zope] Odd ZCTextIndex behavior
> Hi folks -
> I've noticed some odd behavior in the ZCTextIndex. I have an
>index of searchable terms that include, among other things, the
>employer's name. In instances where the company name is a string
>followed by a number (in this instance, "the451 group"), searching for
>the number ("451") even with wildcards ("*451*"), only finds references
>where the number is alone, and not part of any other string. Oddly,
>searching for "t*451" matches the name.
> I'm running the binary 2.6.2 (and 2.6.1) releases on linux. This
>occurrs in both.
> Any ideas why this would happen? Is this correctable?
>Zope maillist - Zope at zope.org
>** No cross posts or HTML encoding! **
>(Related lists -
> http://mail.zope.org/mailman/listinfo/zope-dev )
The new MSN 8: advanced junk mail protection and 2 months FREE*
More information about the Zope