Nuxeo mailing list archives
[CPS-devel] Re: Lucene Product Suite
Julien Anguenot
ja at nuxeo.com
Mon Jul 31 17:23:37 CEST 2006
Christian Klinger wrote:
> Hi, thx for your answers.
>
>>> Yes i think i use 0-9-1
>
> Now i use 0-9-3.
>
>>
>> hum should be fine then. What kind of field and analyzer do you use for
>> allowedRolesAndUsers ?
>>
>
> It was cool to have a matrix anything like that:
>
>
> ZCATALOG | LuceneCatalog - Analizer
> --------------------------------------------
> TextIndex | Text - 'Standard'
> KeywordIndex | Keyword - 'Standard'
> ...
>
> For the allowedRolesAndUsers i use this statement:
>
> pcat.addField(name='allowedRolesAndUsers',attribute='allowedRolesAndUsers',type='Keyword',analyzer='Standard')
nope use MultiKeyword instead. (check the default CPS configuration)
See :
http://svn.nuxeo.org/trac/pub/browser/CPS3/products/CPSLuceneCatalog/trunk/profiles/default/lucenecatalog.xml
J.
>
> Unfortunataly it doesen´t work. The log in NXLucene says:
>
> 2006-07-31 16:40:46,875 - NXLucene.core - INFO - xmlrpc_searchQuery....
> 2006-07-31 16:40:46,876 - NXLucene.core - DEBUG - xmlrpc_searchQuery :
> search_fields=(u'review_state', u'Subject', u'allowedRolesAndUsers',
> u'getEventType', u'getRawRelatedItems', u'Title', u'Creator',
> u'Description', u'SearchableText', u'Type', u'getId',
> u'getObjPositionInParent', u'id', u'in_reply_to', u'is_default_page',
> u'meta_type', u'is_folderish', u'portal_type', u'sortable_title',
> u'Date', u'created', u'effective', u'expires', u'end',
> u'effectiveRange', u'modified', u'start', u'path', u'ModificationDate')
> search_options=({'analyzer': u'Standard', 'value':
> u'Manager#Authenticated#Anonymous#user:cklinger', 'usage': '', 'type':
> u'Keyword', 'id': u'allowedRolesAndUsers', 'condition': u''},
> {'analyzer': u'Standard', 'value': u'cklinger', 'usage': '', 'type':
> u'text', 'id': u'Creator', 'condition': u''}) and
> search_options={'start': '0', 'size': '100'}
> 2006-07-31 16:40:46,878 - NXLucene.core - DEBUG - Using analyzer of type
> org.apache.lucene.analysis.standard.StandardAnalyzer at 2ce88 for field
> Creator
> 2006-07-31 16:40:46,878 - NXLucene.core - DEBUG - query
> +(allowedRolesAndUsers:Manager allowedRolesAndUsers:Authenticated
> allowedRolesAndUsers:Anonymous allowedRolesAndUsers:user:cklinger)
> +Creator:cklinger
> 2006-07-31 16:40:46,879 - NXLucene.core - DEBUG - Request sort-order is
> None
> 2006-07-31 16:40:46,880 - NXLucene.core - INFO - Number of results 0
> 2006-07-31 16:40:46,881 - NXLucene.core - INFO - Time to find return
> results 0.00175809860229
> 2006-07-31 16:40:46,881 - NXLucene.core - INFO - Time to construct the
> RSS query 0.0001220703125
>
>
> Do you know whats going on?
>
>
> Thx christian
>
>
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - www.nuxeo.com
CPS Platform - http://www.cps-project.org
Mobile: +33 (0) 6 72 57 57 66
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.nuxeo.com/pipermail/cps-devel/attachments/20060731/ca4accd0/signature.pgp
More information about the cps-devel
mailing list
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.