From: Asle P. <ape...@ho...> - 2002-08-06 10:32:17
|
I am using Jython to interface to the Lucene indexer. A Lucene method is supposed to return a string however instead of the text a stringified array is returned. The string looks like this: "array([78, 111, 32, 105, 110, ..... 116, 116], byte)" where the type() is org.python.core.PyString. For those of you familiar with org.apache.lucene the problem occurs in the .get() method of the org.apache.lucene.document.Document class. Can anyone tell me why this problem occurs and if possible come up with a solution/workaround?? /Asle _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com |
From: Samuele P. <pe...@in...> - 2002-08-06 12:10:30
|
From: Asle Pedersen <ape...@ho...> > I am using Jython to interface to the Lucene indexer. A Lucene method is > supposed to return a string however instead of the text a stringified array > is returned. The string looks like this: > "array([78, 111, 32, 105, 110, ..... 116, 116], byte)" where the type() is > org.python.core.PyString. > > For those of you familiar with org.apache.lucene the problem occurs in the > .get() method of the org.apache.lucene.document.Document class. > > Can anyone tell me why this problem occurs and if possible come up with a > solution/workaround?? > It is unlikey that the garbage is produced just by calling get, get returns a String and Jython does not anything fancy with that. So the question is probably more how the Document is populated with such data/garbage in the first place. regards. |