I am using Hibernate. I am looking for a free text engine.
Before I investigate into it I need your experience.
I have in my applications user, role and object table. Where a user is connected to one or more roles, and a role is connected to one or more objects.
In my free text search, the user can reach only data that he is allowed to watch by object table.
Can Hibernate search help me with it?
Check this out:
http://lucene.apache.org/java/2_4_0/api/org/apache/lucene/search/Filter.html
I think this is the proper way to implement what you want. Don’t really know how is this integrated into hibernate-search, but hopefully there is a way to add a filter to a query somehow.
Later edit:
it looks like there is:
http://docs.jboss.org/hibernate/stable/search/reference/en/html/search-query.html#query-filter