Skip to content
For AI agents: the complete documentation index is available at llms.txt; this page is also available as Markdown at index.md.

AuthorTermAggregation

The field-based AuthorTermAggregation aggregates search results by the value of the Author field.

Arguments

  • name - name of the Aggregation
  • contentTypeIdentifier - string representing the content type identifier
  • fieldDefinitionIdentifier - string representing the Field Definition identifier

Example

You can use this Aggregation over the REST API, in the Aggregations element of the payload of the POST /views request:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
"Query": {
    "Aggregations": [
        {
            "AuthorTermAggregation": {
                "name": "aggregation_name",
                "contentTypeIdentifier": "article",
                "fieldDefinitionIdentifier": "authors"
            }
        }
    ]
}