Andi,
you are absolutely right.  Thanks for the help.

Andi Vajda wrote:

On Fri, 12 Jan 2007, Kenny Ma wrote:

I'm getting an InvalidArgsError when trying to create a field with unicode value. This is the exact error:

PyLucene.InvalidArgsError: (<type 'PyLucene.Field'>, '__init__', ('content', u' Column 1A Cell 1B Cell 2A Cell 2B 2006-01-07 00:00:00 2004-12-07 00:00:00 152.0 asdf asdf 25.0 Sheet 2 1A Sheet2 1B Sheet 2 2A Sheet2 2B 4.0 5.0'))

Does anyone know what's wrong with the field value that I'm passing to the Field constructor?

Nothing is wrong with the value but you're missing arguments to the constructor: http://lucene.apache.org/java/docs/api/org/apache/lucene/document/Field.html

[This electronic message may contain information that may fall under the classification of Company Confidential or Company Proprietary Information: This electronic message may contain confidential/proprietary information and is for the personal and exclusive use of the recipient(s) to whom it is addressed. If you have received this transmission and are not the intended recipient(s) or his/her agent, please be advised that any disclosure, use, review, copying, selling, dissemination, publication or distribution of this transmission is unauthorized and prohibited. If you have received this transmission in error, please notify this office and destroy this message. FOLDERA(TM), Group Information Manager(TM) and GIM(TM) are trademarks of Foldera, Inc., Huntington Beach, California.]

Please, avoid including this kind of legal mumbo-jumbo. It has no place on this list. If your employer adds this to each and every message you send out, use a different email provider.

Thanks !

Andi..
_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

[This electronic message may contain information that may fall under the 
classification of Company Confidential or Company Proprietary Information: This 
electronic message may contain confidential/proprietary information and is for 
the personal and exclusive use of the recipient(s) to whom it is addressed.  If 
you have received this transmission and are not the intended recipient(s) or 
his/her agent, please be advised that any disclosure, use, review, copying, 
selling, dissemination, publication or distribution of this transmission is 
unauthorized and prohibited. If you have received this transmission in error, 
please notify this office and destroy this message. FOLDERA(TM), Group 
Information Manager(TM) and GIM(TM) are trademarks of Foldera, Inc., Huntington 
Beach, California.]

_______________________________________________
pylucene-dev mailing list
[email protected]
http://lists.osafoundation.org/mailman/listinfo/pylucene-dev

Reply via email to