AFAIK it is not possible via the API right now. There was a request like this a couple of
weeks ago in the forums, I think. Some people argued that it would be hard to maintain
indexes for searches like this and some others argued that for real life usage it would be
necessary.
Please search the forum and JIRA.
Maybe you can achieve what you want to do by using a custom Hibernate query for instance.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4266639#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...