SolrQuery::setGroupCachePercent

Enables caching for result grouping

&reftitle.description; public `SolrQuery` `SolrQuery::setGroupCachePercent` `int` `percent`

Setting this parameter to a number greater than 0 enables caching for result grouping. Result Grouping executes two searches; this option caches the second search. The server default value is 0. Testing has shown that group caching only improves search time with Boolean, wildcard, and fuzzy queries. For simple queries like term or "match all" queries, group caching degrades performance. group.cache.percent parameter

&reftitle.parameters;

`percent`

&reftitle.returnvalues;

&reftitle.errors;

Emits `SolrIllegalArgumentException` in case of an invalid parameter was passed.

&reftitle.seealso;

- `SolrQuery::setGroup`
- `SolrQuery::addGroupField`
- `SolrQuery::addGroupFunction`
- `SolrQuery::addGroupQuery`
- `SolrQuery::addGroupSortField`
- `SolrQuery::setGroupFacet`
- `SolrQuery::setGroupOffset`
- `SolrQuery::setGroupLimit`
- `SolrQuery::setGroupMain`
- `SolrQuery::setGroupNGroups`
- `SolrQuery::setGroupTruncate`
- `SolrQuery::setGroupFormat`