filter = new LsaFilter(OpponentHistogram.class, DocumentBuilder.FIELD_NAME_OPPONENT_HISTOGRAM);
} else if (selectboxDocumentBuilder.getSelectedIndex() == 14) {  // LuminanceLayout
filter = new LsaFilter(LuminanceLayout.class, DocumentBuilder.FIELD_NAME_LUMINANCE_LAYOUT);
} else if (selectboxDocumentBuilder.getSelectedIndex() >= 15) {  // PHOG
filter = new LsaFilter(PHOG.class, DocumentBuilder.FIELD_NAME_PHOG);
<BUG>}
tableModel.setHits(filter.filter(tableModel.hits, tableModel.hits.doc(0)), null);

}//GEN-LAST:event_rerankLsaActionPerformed</BUG>
private void indexAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_indexAllActionPerformed

filter = new LsaFilter(OpponentHistogram.class, DocumentBuilder.FIELD_NAME_OPPONENT_HISTOGRAM);
} else if (selectboxDocumentBuilder.getSelectedIndex() == 14) {  // LuminanceLayout
filter = new LsaFilter(LuminanceLayout.class, DocumentBuilder.FIELD_NAME_LUMINANCE_LAYOUT);
} else if (selectboxDocumentBuilder.getSelectedIndex() >= 15) {  // PHOG
filter = new LsaFilter(PHOG.class, DocumentBuilder.FIELD_NAME_PHOG);
}
try {
IndexReader reader = DirectoryReader.open(FSDirectory.open(Paths.get(textfieldIndexName.getText())));
tableModel.setHits(filter.filter(tableModel.hits, reader, reader.document(tableModel.hits.documentID(0))), null, reader);
} catch (IOException e) {
e.printStackTrace();
}
}//GEN-LAST:event_rerankLsaActionPerformed
private void indexAllActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_indexAllActionPerformed
