[Zope] Odd ZCTextIndex behavior

Lee J. McAllister ljmcallister at hotmail.com
Thu Oct 30 13:26:28 EST 2003


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 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 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 at 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




More information about the Zope mailing list