You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Ian Lea <ia...@gmail.com> on 2010/01/29 21:05:59 UTC

Re: index a mysql database -blob field

Search google for converting mysql BLOBs to text.  Or look at the
ResultSet stream methods in conjunction with the Field constructors
that take Readers.

Maybe something like
 new Field(txt, new InputStreamReader(rs.getBinaryStream(txt))


--
Ian.


On Fri, Jan 29, 2010 at 6:10 PM, luciusvorenus
<lu...@hotmail.de> wrote:
>
> helo
>
> One more question to blob :
>
> ""d.add(new Field("txt", rs.getString("subject"), Field.Store.NO,
> Field.Index.ANALYZED));"""
>
> but how can i index a blob?
>
> the field txt is a blob ... with rs.geBlob(txt) ?
>
> thank u
>
> thank

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org