tx = s.beginTransaction();
Map<String, Float> boosts = new HashMap<String, Float>(2);
boosts.put( "title", new Float(4) );
boosts.put( "description", new Float(1) );
MultiFieldQueryParser parser = new MultiFieldQueryParser( TestConstants.getTargetLuceneVersion(), new String[] {"title", "description"},
TestConstants.standardAnalyzer, boosts );
Query luceneQuery = parser.parse( "dark" );
FullTextQuery ftQuery = s.createFullTextQuery( luceneQuery, Dvd.class )
.setProjection( FullTextQuery.DOCUMENT_ID, FullTextQuery.EXPLANATION, FullTextQuery.THIS );
@SuppressWarnings("unchecked") List<Object[]> results = ftQuery.list();
assertEquals( 2, results.size() );
for ( Object[] result : results ) {