Sample project to illustrate https://hibernate.atlassian.net/browse/HSEARCH-1447