lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <petite_abei...@mac.com>
Subject Re: index: how to store binary data or objects ?
Date Tue, 10 Feb 2004 12:22:39 GMT

On Feb 10, 2004, at 03:59, brosch@gmx.de 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: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message