Re: TextIndexNG3 Support in ZMS

Thorsten Weber <[email protected]>
Newsgroups gmane.comp.cms.zms.devel
Message-ID <[email protected]>
Hello Sebastian,

well ... after all I found out this:

I tried to establish multilingual (muli)select-fields with this code
(as descibed here: http://tech.groups.yahoo.com/group/zms-developers/message/3193) 
:

<dtml-call "REQUEST.set('l',[])">
<dtml-call "REQUEST['l'].append(['1',getLangStr('auto',lang)])">
<dtml-call "REQUEST['l'].append(['2',getLangStr('win_self',lang)])">
<dtml-call "REQUEST['l'].append(['3',getLangStr('win_new',lang)])">
<dtml-return "REQUEST['l']">

This works fine (thanx to Thorsten Fox!) ...

but - of course - in this way the selected value is indexed as 4 and  
not the language string!
This is why (multi)select values were not searchable!

so - we need to change the code to this:

<dtml-call "REQUEST.set('l',[])">
<dtml-call  
"REQUEST 
['l'].append([getLangStr('auto',lang),getLangStr('auto',lang)])">
<dtml-call  
"REQUEST 
['l 
'].append([getLangStr('win_self',lang),getLangStr('win_self',lang)])">
<dtml-call  
"REQUEST 
['l'].append([getLangStr('win_new',lang),getLangStr('win_new',lang)])">
<dtml-return "REQUEST['l']">

in this way the selected value is stored and indexed as the language  
string!

Hope this helps you as well.
Of course there is still the problem of the "german umlaute" in  
zcatalog ...

Nevertheless I hope there will be a solution to use TextIndexNG with  
ZMS.
Maybe Mr. Hoffmann can give a hint ... ?!

best regards,
Thorsten Weber



Am 05.05.2009 um 18:14 schrieb Sebastian Tänzer:

>
>
> Hello Torsten,
>
> I have no solution but the same problems.
> Did it the same way you did and am stuck with
> an empty zcat_text_ger index.
>
> I'm trying to index other fields of content objects.
>
> Mit freundlichen Grüßen
> Sebastian Tänzer
>
> tänzermedien e.K.
> Agentur für Online-Medien:
> Konzept / Design / Programmierung
>
> c/o amcm GmbH
> Kekuléstr. 39
> 53115 Bonn
>
> Tel 0228-33646-23
> Fax 0228-33646-13
> Mobil 0174-333-7001
>
> E-Mail [email protected]
> WWW http://www.taenzer.me
>
> Am 05.05.2009 um 18:09 schrieb Thorsten Weber:
>
> >
> >
> > Dear List,
> >
> > I´m still trying to use TextIndexNG3 with ZMS ... but somehow I can 
> ´t
> > manage it :(
> >
> > I do the following:
> > - wget TextIndexNG3 from sourceforge
> > - untar into /zope_instance/Products folder
> > - cd to /zope_instance/Products/TextIndexNG3/extension_modules
> > - compile and install with python2.4 setup.py install
> > - add path to zopyx dir to PYTHONPATH (something like / 
> zope_instance/
> > Products/TextIndexNG3/...)
> > - restart zope
> >
> > in ZMI:
> > - change to configuration -> system
> > - click on ZCatalog -> Advanced -> clear Catalog
> > - in configuration -> system -> check "Search with TextIndexNG"
> > - and change "Search with TextIndex-type" to "TextIndexNG3" (I also
> > tried "TextIndexNG" or even "ZCTextIndex" - not difference!)
> > - click on Reindex
> >
> > Now in ZCatalog new Indexes are build with type = TextIndexNG3 :-)
> >
> > BUT the index content of zcat_text_ger is always 0 and encoding is  
> set
> > to ISO-8859-15 !!
> >
> > having a look at the indexes tab within ZCatalog the Index-Type
> > TextIndexNG3 is available
> > I don´t get any errors or something ...
> >
> > So ... what am I supposed to do to use TextIndexNG in ZMS?
> >
> > ah, yes ... my system specs:
> > ZMS: ZMS 2.11.1-51 (Build #131k)
> > ZOPE: (Zope 2.10.4-final, python 2.4.4, linux2)
> > PYTHON: 2.4.4
> >
> > Any help welcome!
> >
> > best regards. Th. Weber
> >
> >
> >
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.