Boolean property search filter
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-08-2017 06:50 AM
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2017 02:20 AM
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).
