Transaction transaction = session.beginTransaction();
QueryBuilder queryBuilder = fullTextSession.getSearchFactory()
.buildQueryBuilder()
.forEntity( FormulaAdd.class )
.get();
Query luceneQuery = queryBuilder.keyword().onField( "aplusB" ).ignoreAnalyzer().matching( value ).createQuery();
FullTextQuery query = fullTextSession.createFullTextQuery( luceneQuery, FormulaAdd.class );
List resultsList = query.list();
transaction.commit();
Assert.assertEquals( 1, resultsList.size() );
FormulaAdd result = (FormulaAdd) resultsList.get( 0 );