I have created the following document types: Bc,Bl,facture; they are all linked by the field num_bc. I created a local search by num_bc, my issue is that the search can results only one of the three document types but not all of them.
here's what I've tried:
<coreQueryPageProvider>
<property name="coreSession">#{documentManager}</property>
<property name="maxResults">DEFAULT_NAVIGATION_RESULTS</property>
<whereClause docType="liasse_search">
<predicate parameter="bc:num_bc" operator="=">
<field schema="liasse_search" name="num_bc" />
</predicate>
<predicate parameter="bl:num_bc" operator="=">
<field schema="liasse_search" name="num_bc" />
</predicate>
<predicate parameter="fctr:num_bc" operator="=">
<field schema="liasse_search" name="num_bc" />
</predicate>
<fixedPart>
ecm:isCheckedInVersion = 0 AND
ecm:mixinType != 'HiddenInNavigation' AND
ecm:currentLifeCycleState != 'deleted' AND
ecm:primaryType = 'bc' OR ecm:primaryType = 'bl' OR ecm:primaryType = 'facture'
</fixedPart>
<sort column="dc:title" ascending="true" />
<pageSize>20</pageSize>
</whereClause>
</coreQueryPageProvider>