diff --git a/docs/indexables.md b/docs/indexables.md index 8382d9d477..5902be0739 100644 --- a/docs/indexables.md +++ b/docs/indexables.md @@ -380,11 +380,12 @@ The following are special parameters that are only supported by ElasticPress. 's' => 'search phrase', 'aggs' => array( 'name' => 'name-of-aggregation', // (can be whatever you'd like) - 'use-filter' => true // (*bool*) used if you'd like to apply the other filters (i.e. post type, tax_query, author), to the aggregation - 'aggs' => array( - 'name' => 'name-of-sub-aggregation', - 'terms' => array( - 'field' => 'terms.name-of-taxonomy.name-of-term', + 'use-filter' => true, // (*bool*) used if you'd like to apply the other filters (i.e. post type, tax_query, author), to the aggregation + 'aggs' => array( + 'name-of-sub-aggregation' => array( + 'terms' => array( + 'field' => 'terms.name-of-taxonomy.name-of-term', + ), ), ), ), @@ -532,4 +533,4 @@ The User Indexable is only enabled if the User feature is activated. ElasticPres * ```search_columns``` - Specify columns in the user database table to be searched. NB: this is merged into ```search_fields``` before being sent to Elasticsearch with ```search_fields``` overwriting ```search_columns```. \ No newline at end of file + Specify columns in the user database table to be searched. NB: this is merged into ```search_fields``` before being sent to Elasticsearch with ```search_fields``` overwriting ```search_columns```.