ZCTextIndex extra tagged values

3 messages Options
Embed this post
Permalink
Mike Metcalfe () ZCTextIndex extra tagged values
Reply Threaded More More options
Print post
Permalink
I am stuck with the exact same problem as Kees. I eventually removed
from the model all index and catalog tagged values for the ZCTextIndex
fields and added the definitions in the footer section of catalog.xml.
Anyone got any other ideas?

Mike

Kees Hink wrote:

> I am generating code for Plone 2.5 with AGX 2.1.
>
> I am using a ZCTextIndex for which the catalog.xml needs the lines:
>      <extra name="index_type" value="Okapi BM25 Rank"/>
>      <extra name="lexicon_id" value="plone_lexicon"/>
>
> What can i put in the index:extras tagged value for this field so that it will
> add the lines? The manual
> http://plone.org/documentation/manual/archgenxml2/reference/tagged-values says
> "Provide a comma separated list." but if have tried these forms and they fail:
>
> 'lexicon_id=plone_lexicon','index_type=Okapi BM25 Rank' ,
> lexicon_id=plone_lexicon,index_type='Okapi BM25 Rank' and
> lexicon_id=plone_lexicon,index_type=Okapi BM25 Rank
>
> fail with TypeError: string indices must be integers
>
> 'lexicon_id':'plone_lexicon' and
> {'lexicon_id':'plone_lexicon'}
>
> fail with InError: Strings are not allowed as input to the in tag.
>
> Thanks in advance,
>
> Kees

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Vincent Fretin () Re: ZCTextIndex extra tagged values
Reply Threaded More More options
Print post
Permalink
Hi,

For now I write the ZCTextIndex in the footer section of catalog.xml too.
I saw recently there was a index:extras tagged-values. I didn't look
in the archgenxml code to find how to use it.
If I found something interesting, I'll let you know. If there is a
bug, I'll provide a patch then.

Cheers
Vincent Fretin


On Thu, Mar 5, 2009 at 2:14 PM, Mike <[hidden email]> wrote:

> I am stuck with the exact same problem as Kees. I eventually removed
> from the model all index and catalog tagged values for the ZCTextIndex
> fields and added the definitions in the footer section of catalog.xml.
> Anyone got any other ideas?
>
> Mike
>
> Kees Hink wrote:
>> I am generating code for Plone 2.5 with AGX 2.1.
>>
>> I am using a ZCTextIndex for which the catalog.xml needs the lines:
>>      <extra name="index_type" value="Okapi BM25 Rank"/>
>>      <extra name="lexicon_id" value="plone_lexicon"/>
>>
>> What can i put in the index:extras tagged value for this field so that it will
>> add the lines? The manual
>> http://plone.org/documentation/manual/archgenxml2/reference/tagged-values says
>> "Provide a comma separated list." but if have tried these forms and they fail:
>>
>> 'lexicon_id=plone_lexicon','index_type=Okapi BM25 Rank' ,
>> lexicon_id=plone_lexicon,index_type='Okapi BM25 Rank' and
>> lexicon_id=plone_lexicon,index_type=Okapi BM25 Rank
>>
>> fail with TypeError: string indices must be integers
>>
>> 'lexicon_id':'plone_lexicon' and
>> {'lexicon_id':'plone_lexicon'}
>>
>> fail with InError: Strings are not allowed as input to the in tag.
>>
>> Thanks in advance,
>>
>> Kees

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users
Jens W. klein-2 () Re: ZCTextIndex extra tagged values
Reply Threaded More More options
Print post
Permalink
In reply to this post by Mike Metcalfe
Hi,

its fixed in trunk

you can specify an tgv index:extras with "foo=bar" and it results in

<extra name="foo" value="bar" />

if you need more than one extra just specify the same tagged value
several times.

Jens

Am Thu, 05 Mar 2009 05:14:04 -0800 schrieb Mike:

> I am stuck with the exact same problem as Kees. I eventually removed
> from the model all index and catalog tagged values for the ZCTextIndex
> fields and added the definitions in the footer section of catalog.xml.
> Anyone got any other ideas?
>
> Mike
>
> Kees Hink wrote:
>> I am generating code for Plone 2.5 with AGX 2.1.
>>
>> I am using a ZCTextIndex for which the catalog.xml needs the lines:
>>      
 <extra
>>      name="lexicon_id" value="plone_lexicon"/>
>>
>> What can i put in the index:extras tagged value for this field so that
>> it will add the lines? The manual
>> http://plone.org/documentation/manual/archgenxml2/reference/tagged-
values

>> says "Provide a comma separated list." but if have tried these forms
>> and they fail:
>>
>> 'lexicon_id=plone_lexicon','index_type=Okapi BM25 Rank' ,
>> lexicon_id=plone_lexicon,index_type='Okapi BM25 Rank' and
>> lexicon_id=plone_lexicon,index_type=Okapi BM25 Rank
>>
>> fail with TypeError: string indices must be integers
>>
>> 'lexicon_id':'plone_lexicon' and
>> {'lexicon_id':'plone_lexicon'}
>>
>> fail with InError: Strings are not allowed as input to the in tag.
>>
>> Thanks in advance,
>>
>> Kees





--
Jens W. Klein, BlueDynamics Alliance, http://bluedynamics.com


------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Archetypes-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/archetypes-users