cancel
Showing results for 
Search instead for 
Did you mean: 

Boolean property search filter

Nuxeo_User
Confirmed Champ
Confirmed Champ

Hello :) I have defined a search content view for a specific type of document.This document has a Boolean property and i can not filter by this property. Can someone help me?

1 REPLY 1

adam_bo_
Star Contributor
Star Contributor

It can be done very easly by using the aggregation in the coreQueryPageProvider:

        <aggregate id="checkbox_agg" type="range" parameter="myschema:boolfield">
          <field schema="search_myschema" name="checkbox_agg" />
          <ranges>
            <range key="false" to="1"/>
            <range key="true" from="1" />
          </ranges>
        </aggregate>

Without aggregation it will be a bit difficault because it is needed three values (null, true, false).

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.