Christian Klinger wrote: > Hi i don´t understand the meaning of the SchemaTab in ZMI. Can you > explain that?
Basically, Lucene has a notion of stored fields that can be returned
when searching. The schema tab is a way to filter out these stored
values to get back from NXLucene only the ones we are interested about.
And as well, the idea is to keep the ZCatalog behavior regarding this
issue because it's user friendly.
> If i understand you right i have to add the field ModificationDate in
> the List of Fields? It has nothing to do with the Schema Tab in ZMI?
You need to do both if you want the value to be returned within the
result sets. Just do not use an UnStored field in your case for the
modification date field.
>>
>> Can you see the ModificationDate within the Lucene store ? If you added
>> it afterwords, don't forget to reindex the whole Plone site because some
>> of the documents might be missing this field. (I guess you reimplemented
>> the method reindexAllProcies() we add within CPSLuceneCatalog for your
>> plone site right ?
>>
>
> I ´ve alreade done this...
ok fine.
>>> How can i access the ModificationDate?
>>
>> This should be the way if everything is well configured.
>>
>>> Question 2:
>>>
>>> If i enable these two lines in searchResults Methode
>>>
>>> user = _getAuthenticatedUser(self)
>>> kw[ 'allowedRolesAndUsers' ] = self._listAllowedRolesAndUsers(user)
>>>
>>> my query looks like this:
>>>
>>> ({'id': 'allowedRolesAnsUsers', 'value': ['Manager', 'Authenticated',
>>> 'Anonymous', 'user:cklinger']}, {'id': 'portal_type', 'value':
>>> ['Document', 'Event', 'Favorite', 'File', 'Folder', 'Image', 'Large
>>> Plone Folder', 'Link', 'News Item', 'Topic']})
>>>
>>> The Value in Luke for allowdRolesAndUsers looks like this:
>>>
>>> Manager#Authenticated#Anonymous
>>
>> You are using an old version of NXLucene I think ? Use the latest one :
>> http://www.cps-project.org/sections/projects/nxlucene/downloads/nxlucene-0-9-3
>>
>>
>
> Yes i think i use 0-9-1
hum should be fine then. What kind of field and analyzer do you use for
allowedRolesAndUsers ?
What you can do, as well, is to turn the NXLucene logs to DEBUG server
side and get information about the query from there.
>
>> Don't forget to reindex the whole site because the way indexes are
>> stored changed.
>>
>>> without any user:cklinger string.
>>>
>>> Is this correct?
>>
>> nope try the new version, reindex and keep us posted :)
>>
>> J.
>>
> Thx Christian
J.
--
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
signature.asc
Description: OpenPGP digital signature
_______________________________________________ cps-devel mailing list http://lists.nuxeo.com/mailman/listinfo/cps-devel
