RE: [Zope] Odd ZCTextIndex behavior
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 'WebSphere'. I think I'll peruse the ZCatalog source and see if that gives me any hints. However, do any Zope guys have a good explanation for why that happens? Would patching that be a bad thing? -jim -----Original Message----- From: Lee J. McAllister [mailto:ljmcallister@hotmail.com] Sent: Thursday, October 30, 2003 1:26 PM To: dwilson@abrazohealth.com; Jim Kutter; zope@zope.org Subject: RE: [Zope] Odd ZCTextIndex behavior What's the likelyhood that Python is playing silly buggers with type's? To 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 converted properly it could cause something like what you're describing. Lee
sounds like it's not a problem then. Try searching for *451. If that works, then you only need 1 wildcard.
Thanks, Derek Wilson
-----Original Message----- From: Jim Kutter [mailto:jim@ebizq.net] Sent: Tuesday, October 28, 2003 9:28 AM To: zope@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
author's
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?
-jim
_______________________________________________ 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 )
_________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=dept/bcomm&pgmarket=en-ca&RU=http%3a%2f%2fjoin .msn.com%2f%3fpage%3dmisc%2fspecialoffers%26pgmarket%3den-ca
participants (1)
-
Jim Kutter