Skip to content

LocationId Criterion

The LocationId Search Criterion searches for content based in the location ID.

Arguments

  • value - int(s) representing the location ID(s)

Limitations

LocationId can be used on all search engines.

Example

PHP

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

REST API

1
2
3
4
5
<Query>
    <Filter>
        <LocationIdCriterion>62</LocationIdCriterion>
    </Filter>
</Query>
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
{
    "ViewInput": {
        "identifier": "LocationIdCriterionTest",
        "Query": {
            "Filter": {
                "LocationIdCriterion": "62"
            }
        }
    }
}