Problems with the catalog
Hi I'm having problems with ZCatalog and discouvered that the source to my problems is the way ZCatalog catalogs the underscore character(_). When it gets this character the catalog splits the strings. Example: 'qq_root' is indexed ('qq','root'), instead of ('qq_root') Is there any way of bypass this problem without having to change ZCatalog? I'm working in Python directly. Thanks in advance. Antonio -- /------------------------------------------------\ | "Perfection is achieved, | | not when there's nothing else to add, | | but when there's nothing else to take away." | \----------------------------------------------- / URL: http://www.terravista.pt/Enseada/1831 http://accosta.planetaclix.pt http://students.fct.unl.pt/~anjc PT is Portugal ####### # # # #" #" # Linux ##vvvvv## Rules! ## vvv ## # ## ## ## ### ### +++##### ##++ ++++++# #++++++ +++++++# #+++++++ +++++#######+++++ +++ +++
Hi Antonio, The component which causes this behavior for text indexes is the Splitter. The current splitter implementation hardwires the policy to strip out and split words on nonalphanumeric characters. Another splitter implementation could help solve the problem. A few folks have come up with different splitter implementations... searching the maillist might turn up some clues. Thanks! \- C ----- Original Message ----- From: "Antonio João Costa" <anjc@fct.unl.pt> To: "zope" <zope@zope.org> Sent: Tuesday, April 10, 2001 4:12 PM Subject: [Zope] Problems with the catalog
Hi
I'm having problems with ZCatalog and discouvered that the source to my problems is the way ZCatalog catalogs the underscore character(_).
When it gets this character the catalog splits the strings.
Example: 'qq_root' is indexed ('qq','root'), instead of ('qq_root')
Is there any way of bypass this problem without having to change ZCatalog?
I'm working in Python directly.
Thanks in advance.
Antonio -- /------------------------------------------------\ | "Perfection is achieved, | | not when there's nothing else to add, | | but when there's nothing else to take away." | \----------------------------------------------- /
URL: http://www.terravista.pt/Enseada/1831 http://accosta.planetaclix.pt http://students.fct.unl.pt/~anjc
PT is Portugal
####### # # # #" #" # Linux ##vvvvv## Rules! ## vvv ## # ## ## ## ### ### +++##### ##++ ++++++# #++++++ +++++++# #+++++++ +++++#######+++++ +++ +++
participants (2)
-
Antonio João Costa -
Chris McDonough