-
- try {
-
- Document doc = reader.document(scoreDoc.doc);
- List<IndexableField> fs = doc.getFields();
- Object[] o = new Object[fs.size()];
- int index = 0;
- for (IndexableField f : fs) {
- String clazz = classMap.get(f.name());
- if ("Long".equals(clazz)) {
- o[index++] = Long.parseLong(f.stringValue());
- } else {
- o[index++] = f.stringValue();
- }
+ Document doc = reader.document(scoreDoc.doc);
+ List<IndexableField> fs = doc.getFields();
+ Object[] o = new Object[fs.size()];
+ int index = 0;
+ for (IndexableField f : fs) {
+ String clazz = classMap.get(f.name());
+ if ("Long".equals(clazz)) {
+ o[index++] = Long.parseLong(f.stringValue());
+ } else {
+ o[index++] = f.stringValue();