Lucene49 preparations

 - https://hibernate.atlassian.net/browse/HSEARCH-1635
 - https://hibernate.atlassian.net/browse/HSEARCH-1636