lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Lu <chris...@gmail.com>
Subject Re: index a mysql database -blob field
Date Sat, 30 Jan 2010 05:43:38 GMT
For blob, it is not so simple since BLOB could contain different file 
types, like HTML, pdf, word, zip file type.
So besides getting results out via resultSet.getBlob() function, you 
will need to convert the binary stream into simple text strings.

DBSight free version already can read the blog content, based on file 
name extension. You will need a file name extension, or some other way, 
to know what kind of BLOB content it contains.

Chris

-------------------------
Instant Scalable Full-Text Search On Any Database/Application
site: http://www.dbsight.net
demo: http://search.dbsight.com
Lucene Database Search in 3 minutes: http://wiki.dbsight.com/index.php?title=Create_Lucene_Database_Search_in_3_minutes
DBSight customer, a shopping comparison site, (anonymous per request) got 2.6 Million Euro
funding!


luciusvorenus 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


Mime
View raw message