Details
-
New Feature
-
Status: Closed
-
Normal
-
Resolution: Fixed
-
None
-
None
-
None
Description
A facet rule typically looks something like below:
/availability-live: jcr:primaryType: hipposys:facetrule hipposys:equals: true hipposys:facet: hippo:availability hipposys:type: String hipposys:value: live
The jcr nodes that match are the nodes that if the property hippo:availability is equal to live
A very logical thing to select nodes whether they match or not are of course a certain boolean, for example
/availability-live: jcr:primaryType: hipposys:facetrule hipposys:equals: true hipposys:facet: myproject:disclosed hipposys:filter: true hipposys:type: String hipposys:value: true
something like above should result in that IF a node has the property myproject:disclosed , the facet rule only matches if the property has the value true , where this value can be myproject:disclosed as String property equal to "true" OR myproject:disclosed as Boolean property equal to Boolean.TRUE
For a Long or Double, the value can be
hipposys:value: 10 hipposys:value: 10.23
for a Date, you need to specify the String representation of the Date property.