File outDir=new File(args[1]);
FileWriter writer=null;
IndexDumper dumper=new IndexDumper(idxDir);
BoboIndexReader idxReader=dumper._reader;
try{
outDir.mkdirs();
File outFile=new File(outDir,"dataout.txt");
if (!outFile.exists()) outFile.createNewFile();
writer=new FileWriter(outFile);
BufferedWriter bwriter=new BufferedWriter(writer);
dumper=new IndexDumper(idxDir);
Set<String> fields=idxReader.getFacetNames();
for (int k=0;k<idxReader.maxDoc();++k){
for (String field : fields){
FacetHandler facetHandler = idxReader.getFacetHandler(field);
if (facetHandler!=null){
String[] f=facetHandler.getFieldValues(idxReader,k);
StringBuilder buffer=new StringBuilder();
buffer.append(field).append(':');
for (int l=0;l<f.length;++l){