Boolean property search filter
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?
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).