true );
final Query query = new QueryBuilder().addTerm( new ValueTypeIndexTerm( "org.drools.workbench.screens.testscenario.backend.server.indexing.classes.Mortgage" ) ).addTerm( new ValueFieldIndexTerm( "amount" ) ).build();
searcher.search( query,
collector );
final ScoreDoc[] hits = collector.topDocs().scoreDocs;
assertEquals( 1,
hits.length );
final List<KObject> results = new ArrayList<KObject>();
for ( int i = 0; i < hits.length; i++ ) {