this should do it.

https://github.com/Hotware/Hibernate-Search-JPA/issues/3