This query is executed when the field name corresponds to a datatype definition using its prefixed or fully qualified form, for example d:text, {http://www.alfresco.org/model/dictionary/1.0}text).
The query produced is a boolean query which includes an optional clause for each property associated to the input datatype definition.