FullTextSession session = Search.getFullTextSession( openSession() );
QueryBuilder queryBuilder = session.getSearchFactory().buildQueryBuilder().forEntity( IndexedNews.class ).get();
Query luceneQuery = queryBuilder.keyword().wildcard().onField( "newsId" ).ignoreFieldBridge().matching( "tit*" ).createQuery();
Transaction transaction = session.beginTransaction();
@SuppressWarnings("unchecked")
List<IndexedNews> list = session.createFullTextQuery( luceneQuery ).list();
assertThat( list ).hasSize( 1 );
assertThat( list.get( 0 ).getContent() ).isEqualTo( "content" );
assertThat( list.get( 0 ).getNewsId().getTitle() ).isEqualTo( "title" );
assertThat( list.get( 0 ).getNewsId().getAuthor() ).isEqualTo( "author" );
transaction.commit();