lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From petite_abeille <>
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, 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.




To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message