Which one to choose? This is a large discussion between Emmanuel Bernard (Hibernate) and Shay Banon (Compass), my conclusion is that both are really good.
Yeah, both are really good but I have to choose one, and I choose Hibernate Search, here my reasons.
- I use Hibernate API with JPA annotations and similar API seems more natural, to learn and understand.
- Minimal configuration. I only have to put two properties in the config.
- All of my searchable data are in database.
- I think the Hibernate Search annotations fits better with JPA annotations.
- And the last, Hibernate Search is in maven repository (Compass no).
Maybe, if I had many searchable data, that aren't in database I'd choose Compass too.