Nuxeo mailing list archives
[CPS-devel] lucene field with bool-type
Julien Anguenot
ja at nuxeo.com
Wed Jan 3 15:29:49 CET 2007
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
-------------- 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/20070103/2e608eac/signature.pgp
This list archive provided by Nuxeo, the
leaders of open source ECM.
Check out the Nuxeo 5 open source,
standards-based ECM project.