Christian Klinger wrote:
> i try to add a field in the lucene catalog, which stores a bool type
> (True, False).
> 
> I have configured these field like this example:
> 
>   <field
>       name="exclude_from_nav"
>       attr="exclude_from_nav"
>       type="Keyword"
>       analyzer="Standard"
>       />
> 
> 
> If i try to get the results the values are string types.
> 
> Do you have an idea how i get a boolean type from a field?

I'm afraid, I'm sorry this field type is not implemented yet server
side. Though, Lucene could support them. So technically it would be
possible to implement it NXLucene side.

A high level Boolean field type might be a good possibility.

<field
       name="exclude_from_nav"
       attr="exclude_from_nav"
       type="Boolean"
       analyzer="Standard"
       />


You can enter a ticket related to this over there :

http://svn.nuxeo.org/trac/pub/

Nuxeo is not planning to do some more development on NXLucene (bug fixes
 excluded) right now, except if we got an actual customer in need of
something new.

If you are interested about an svn account you can send me a mail off
list. As I said the future of NXLucene will highly depend on the
community...

Cheers,

        J.

> 
> ###############################
>     .>
> /opt/luc/Products/plonelucenecatalog/tests/test_lucenecatalog.py(76)testExpires()
> 
> -> print obj
> (Pdb) exclude_from_nav = obj[0].exclude_from_nav
> (Pdb) exclude_from_nav
> 'False'
> (Pdb) exclude_from_nav.__doc__
> 'str(object) -> string\n\nReturn a nice string representation of the
> object.\nIf the argument is a string, the return value is the same object.'
> (Pdb)
> 
> _______________________________________________
> cps-devel mailing list
> http://lists.nuxeo.com/mailman/listinfo/cps-devel
> 


-- 
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
cps-devel mailing list
http://lists.nuxeo.com/mailman/listinfo/cps-devel

Reply via email to