I am using hibernate search, and I want to limit my search result, I assume I need to use filters, but I have not found any documentation describing how to produce a "or" query/filter
I have two classes.
class A { List<B> bs; }
I have indexed based on the ids of B.
I want to limit my result to only return those instances of A where the list of Bs is part of another list.
E.g.
A1 has B1, B2, B3 in the list
A2 has B3, B4 in the list
A3 has B5 in the list
I would like to be able to limit on Bs, e.g. I want all those As which has B2 or B5, which would limit my search to A1 and A3. If i limit to those with B5, only A3 must be returned.
I am using both search and sort, so as far as I could read I cannot use "normal" criterias to achieve this.
|