custom Lexicon developpement problems
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
--On 2. Mai 2007 10:50:41 +0200 "Winterflood, Jonathan" <jonathan.winterflood@capgemini.com> wrote:
Hi all,
With the goal of allowing the use of wildcards anywhere in a ZCTextIndex query, and also ignore accentuated characters, I am developping a custom Lexicon, Splitter and CaseNormalizer. These are packed into a Product
Why don't you look at TextIndexNG3 where almost everything is pluggable and configurable? -aj
Hi,
Why don't you look at TextIndexNG3 where almost everything is pluggable and configurable?
Firstly because I wasn't aware of its existence... Secondly (now I've seen it) because it seems particularly heavy for my use: It proposes many features, of which I shall only need 2 I have a very tight deadline on this and I'm new to Zope, python and the likes... I can't see how easy it's going to be to use: how long will it take me to transition from ZCTextindexes to TextIndexNG3's? (I've already spent quite some time integrating the ZCTextIndex queries into my code) If these issues are unfounded, I would be happy to use TextIndexNG3, but so far I think I'm better off fixing the couple of bugs in my Lexicon (apart from these, it's finished) TIA for your input on this :) Jonathan -----Message d'origine----- De : Andreas Jung [mailto:lists@zopyx.com] Envoyé : mercredi 2 mai 2007 10:57 À : Winterflood, Jonathan; zope@zope.org Objet : Re: [Zope] custom Lexicon developpement problems --On 2. Mai 2007 10:50:41 +0200 "Winterflood, Jonathan" <jonathan.winterflood@capgemini.com> wrote:
Hi all,
With the goal of allowing the use of wildcards anywhere in a ZCTextIndex query, and also ignore accentuated characters, I am developping a custom Lexicon, Splitter and CaseNormalizer. These are packed into a Product
Why don't you look at TextIndexNG3 where almost everything is pluggable and configurable? -aj This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
<snip> ----- Original Message ----- From: "Winterflood, Jonathan" <jonathan.winterflood@capgemini.com> To: <zope@zope.org> Sent: Wednesday, May 02, 2007 4:50 AM Subject: [Zope] custom Lexicon developpement problems Hi all, With the goal of allowing the use of wildcards anywhere in a ZCTextIndex query, and also ignore accentuated characters, I am developping a custom Lexicon, Splitter and CaseNormalizer. These are packed into a Product The more permissive globbing rules work fine, and the accent-bashing ToAsciiCaseNormalizer too (this looks like a good alternative to indexing a method that would remove the accents from the field we're interested in <suggested on a CPS list>) Hovever, I'm having problems creating indexes that use them: I created the lexicon and indexes via the catalog.xml file, but the 'indexed_attr' fields are ignored (therefore, creating indexes on multiple fields isn't possible). In the ZMI, in portal_catalog, I cannot select the lexicon for use when I add a ZCTextIndex Does anyone know how to go about these problems? </snip> Dieter's Manageable Indexes product may be of some use: http://www.dieter.handshake.de/pyprojects/zope/#ManagableIndex Jonathan
You may want to look at http://www.zope.org/Members/shh/ UnicodeLexicon for inspiration. Stefan On 2. Mai 2007, at 10:50, Winterflood, Jonathan wrote:
Hovever, I'm having problems creating indexes that use them: I created the lexicon and indexes via the catalog.xml file, but the 'indexed_attr' fields are ignored (therefore, creating indexes on multiple fields isn't possible). In the ZMI, in portal_catalog, I cannot select the lexicon for use when I add a ZCTextIndex
-- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams
Hi, Indeed, I had a good look at your UnicodeLexicon while writing mine. The problem is I don't really understand how some of the things work. My main issue is how to integrate the 'indexed_attr' field, but I can't see what is necessary to activate this functionality Could you maybe explain this? Thanks a lot, Jonathan -----Message d'origine----- De : Stefan H. Holek [mailto:stefan@epy.co.at] Envoyé : mercredi 2 mai 2007 19:23 À : Winterflood, Jonathan Cc : zope@zope.org Objet : Re: [Zope] custom Lexicon developpement problems You may want to look at http://www.zope.org/Members/shh/ UnicodeLexicon for inspiration. Stefan On 2. Mai 2007, at 10:50, Winterflood, Jonathan wrote:
Hovever, I'm having problems creating indexes that use them: I created the lexicon and indexes via the catalog.xml file, but the 'indexed_attr' fields are ignored (therefore, creating indexes on multiple fields isn't possible). In the ZMI, in portal_catalog, I cannot select the lexicon for use when I add a ZCTextIndex
-- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
--On 4. Mai 2007 15:04:30 +0200 "Winterflood, Jonathan" <jonathan.winterflood@capgemini.com> wrote:
Hi,
Indeed, I had a good look at your UnicodeLexicon while writing mine. The problem is I don't really understand how some of the things work.
What's why I pointed you to TextIndexNG3 where every component has a well defined interface and is pluggable and replaceable through ZCML. -aj
Hi, I must use mysql lock/unlock with zsql. I haven't found anything about it. There is any solutions? I must lock a table but i don't know how do it :( max
--On 4. Mai 2007 17:34:23 +0200 trashman@httconsulting.com wrote:
Hi,
I must use mysql lock/unlock with zsql. I haven't found anything about it. There is any solutions? I must lock a table but i don't know how do it :(
Since LOCK is a SQL statement you can *of course* integrate with ZSQL method which basically send the configured SQL statements straight down to the database server...where is the problem`? -aj
http://dev.plone.org/collective/browser/UnicodeLexicon/trunk/profiles/ default/catalog.xml Stefan On 4. Mai 2007, at 15:04, Winterflood, Jonathan wrote:
My main issue is how to integrate the 'indexed_attr' field, but I can't see what is necessary to activate this functionality
Could you maybe explain this?
-- Anything that, in happening, causes something else to happen, causes something else to happen. --Douglas Adams
participants (5)
-
Andreas Jung -
Jonathan -
Stefan H. Holek -
trashman@httconsulting.com -
Winterflood, Jonathan