lucene field with bool-type

Christian Klinger <[email protected]>
Newsgroups gmane.comp.web.zope.cps.devel
Message-ID <[email protected]>
Hello,

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?

Christian


###############################
     .> 
/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
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.