title: Spring Boot 2 Hibernate Search
body: <p>I'm trying to migrate my app to Spring Boot 2, which uses Hibernate Search.
  I'm getting error while starting my app :</p>
  
  <ul>
  <li>With <strong>5.5.x.Final</strong> : <code>java.lang.NoSuchFieldError: session</code></li>
  <li>With <strong>5.6.x.Final</strong> or <strong>5.8.x.Final</strong> : <code>java.lang.ClassNotFoundException: org.hibernate.search.jpa.Search</code></li>
  <li>With <strong>5.7.x.Final</strong> or <strong>5.9.x.Final</strong> : <code>An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene53' does not exist</code></li>
  <li>With <strong>5.10.x.Final</strong> : <code>NoClassDefFoundError: org/hibernate/resource/beans/spi/ManagedBeanRegistry</code></li>
  </ul>
  
  <p>For information, currently Spring Boot <code>2.0.3.RELEASE</code> version use Hibernate core dependency in <code>5.2.4.Final</code></p>
  
  <p>Any idea, which version to use ?</p>
  
  <p><strong>Update after Guillaume answer &amp; a deep clean of workspace and indexes</strong></p>
  
  <p>Using 5.9 version, exception has evolved to <code>No transactional EntityManager available</code></p>
  
  <p><strong>Final word</strong></p>
  
  <p>Last error was fixed by adding <code>@Transactional</code> on the method, but it was working in Spring Boot 1 without. Weird...</p>