lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shoba Ramachandran <>
Subject Using lucene with HSSF from Apache
Date Wed, 30 Apr 2003 16:10:27 GMT

Has anyone tried to index xls and doc files?
I'm trying to do with HSSF from apache and using

This code returns me binary and printing it out gives
junk chracters. File indexed like this returns nothing
upon search. 

public static byte[] parse(File file) throws Exception
    POIFSFileSystem fs = new POIFSFileSystem(new
HSSFWorkbook wb = new HSSFWorkbook(fs);
byte[] xlsInfo = wb.getBytes();
    System.out.println("xls content :  "+
return xlsInfo;

Thanks in advance for your help

Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.

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

View raw message