[pylucene-dev] problem creating binary fields

Andraž Tori andraz.tori1 at guest.arnes.si
Sat May 12 06:56:48 PDT 2007


I have problems creating binary fields, i have nailed down the problem
to the non-ascii characters in supposed binary data of the field.

Here's the testcase:
------------------------------------
import PyLucene

a = PyLucene.Field("show_tokens", '\xf3',
        PyLucene.Field.Store.YES)
------------------------------------

Here's the output:

Traceback (most recent call last):
  File "field_problem.py", line 5, in ?
    PyLucene.Field.Store.YES)
PyLucene.InvalidArgsError: (<type 'PyLucene.Field'>, '__init__',
('show_tokens', '\xf3', <Field_Store: YES>))


------------------------

Any ideas what i am doing wrong?

bye
andraz



More information about the pylucene-dev mailing list