Fix some usages of Hibernate Search deprecated api
ISPN-3828 Some query and remote query tests using filesystem Lucene directory need to ensure the index is clean before and after the test