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 isn't available in Solr or Elasticsearch 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"
    }
}