Skip to content

IsUserBased Criterion

The IsUserBased Search Criterion searches for content that plays the role of a User account.

Note

In the default setup only the User content type is treated as User accounts. However, you can also set other content types to be treated as such.

Arguments

  • (optional) value - bool representing whether to search for User-based (default true) or non-User-based content

Limitations

The IsUserBased Criterion is not available in Solr or Elastic search engines.

Example

PHP

1
$query->query = new Criterion\IsUserBased();

REST API

1
2
3
4
5
<Query>
    <Filter>
        <IsUserBasedCriterion>false</IsUserBasedCriterion>
    </Filter>
</Query>
1
2
3
4
5
"Query": {
    "Filter": {
        "IsUserBasedCriterion": "false"
    }
}