On Feb 10, 2004, at 03:59, [EMAIL PROTECTED] wrote:


Is there a way to do this?

Lucene deals with text. You could always serialize your objects in a byte array, hex encode them or something, and store that in an appropriate field.


What would you suggest to do?

Don't store your objects in Lucene :)


As other have pointed out, you will be much better off storing your object somewhere else (files, db, btree, whatever) and only use Lucene to store a reference to those objects.

For a concrete example of this approach, take a look at ZOE [1] source code [2].

It uses Lucene for, er, indexing and JDBM [2] to store the corresponding object's binaries.

Cheers,

PA.

[1] http://zoe.nu/itstories/story.php?data=stories&num=16&sec=1
[2] http://zoe.nu/misc/Workspace20031122.tgz
[3] http://jdbm.sourceforge.net/


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to