Does this help? http://lucene.apache.org/java/3_0_1/api/all/org/apache/lucene/util/IndexableBinaryStringTools.html
If not, here's a note from Ryan McKinley on another thread (googling lucene storing binary data brought it up)... ****** You can store binary data using a binary field type -- then you need to send the data base64 encoded. I would strongly recommend against storing large binary files in solr -- unless you really don't care about performance -- the file system is a good option that springs to mind. ****** Best Erick On Mon, Jun 20, 2011 at 2:26 PM, Hiller, Dean x66079 <dean.hil...@broadridge.com> wrote: > I see the api in Lucene is new Field(String, String, Store, Index) > > Is there anyway to store one of the fields as byte[]? Specifically the value > I am looking up I would like it to be byte[] instead of String. All my other > ones are String anyways. > > Thanks, > Dean > > > This message and any attachments are intended only for the use of the > addressee and > may contain information that is privileged and confidential. If the reader of > the > message is not the intended recipient or an authorized representative of the > intended recipient, you are hereby notified that any dissemination of this > communication is strictly prohibited. If you have received this communication > in > error, please notify us immediately by e-mail and delete the message and any > attachments from your system. > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org