Re: Re: Lucene Product Suite

Julien Anguenot <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Organization NUXEO
Message-ID <[email protected]>
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

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel
signature.asc (application/pgp-signature, 252 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEzgLNGhoG8MxZ/pIRAk0xAJ4u8SV4R54N1bWCTBe/sLlgCM+1XQCePOlv
d5CtAMbO6POGt2CA2kJgkNw=
=Zk+Y
-----END PGP SIGNATURE-----
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.