Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#108 vocabularyform and Index settings

closed
nobody
None
5
2009-01-04
2009-01-02
ddavout d
No

If I delete my SearchableTextIndex and have one with unique language fr

Module zope.tales.tales, line 696, in evaluate
- URL: index
- Line 41, Column 2
- Expression: <PythonExpr ( wv(request.get('pattern'), request.get('language')))>
- Names:
{'container': <TextIndexNG3 at /s1/portal_catalog//SearchableText>,
'context': <TextIndexNG3 at /s1/portal_catalog//SearchableText>,
'default': <object object at 0xb7d00528>,
'here': <TextIndexNG3 at /s1/portal_catalog//SearchableText>,
'loop': {},
'nothing': None,
'options': {'args': (<Products.Five.metaclass.SimpleViewClass from /home/dan/linea/projet1/eggs/Products.TextIndexNG3-3.2.15-py2.4.egg/Products/TextIndexNG3/pt/vocabulary.pt object at 0x1037230c>,)},
'repeat': <Products.PageTemplates.Expressions.SafeMapping object at 0x103de1ec>,
'request': <HTTPRequest, URL=http://127.0.0.1:8090/s1/portal_catalog/Indexes/SearchableText/vocabularyform>,
'root': <Application at >,
'template': <ImplicitAcquirerWrapper object at 0x103720cc>,
'traverse_subpath': [],
'user': <PropertiedUser 'admin'>,
'view': <Products.Five.metaclass.SimpleViewClass from /home/dan/linea/projet1/eggs/Products.TextIndexNG3-3.2.15-py2.4.egg/Products/TextIndexNG3/pt/vocabulary.pt object at 0x1037230c>,
'views': <zope.app.pagetemplate.viewpagetemplatefile.ViewMapper object at 0x103de42c>}
Module zope.tales.pythonexpr, line 59, in __call__
- __traceback_info__: ( wv(request.get('pattern'), request.get('language')))
Module <string>, line 0, in ?
Module Products.TextIndexNG3.browser, line 31, in words_vocabulary
Module textindexng.lexicon, line 191, in getWordsForPattern
Module textindexng.lexicon, line 72, in _getTree
LexiconError: Unsupported language: en
----------------
if I ask for Languages fr,en with indexation of unknown languages the word "production" for example is rightly found by
http://127.0.0.1:8090/s1/portal_catalog/Indexes/SearchableText/vocabularyform?pattern%3Austring%3Autf-8=p\*&language=fr
but
http://127.0.0.1:8090/s1/portal_catalog/Indexes/SearchableText/documentsforword?word:ustring:utf-8=production doesn't present any document.

----
if I use the configlet in the Plone control panel, http://127.0.0.1:8090/s1/txng_convert_indexes?overwrite:int=1
I loose my choice of languages (I have no only en),default parser (now en) and stopwords(now False)...
but http://127.0.0.1:8090/s1/portal_catalog/Indexes/SearchableText/documentsforword?word:ustring:utf-8=production give the expected links

Discussion

  • Andreas Jung
    Andreas Jung
    2009-01-04

    • status: open --> closed
     
  • Andreas Jung
    Andreas Jung
    2009-01-04

    Fixed in TXNG 3.2.17