略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SolrQuery::setGroupCachePercent

2024-12-21

SolrQuery::setGroupCachePercent

(PECL solr >= 2.2.0)

SolrQuery::setGroupCachePercentEnables caching for result grouping

说明

public SolrQuery::setGroupCachePercent(int $percent): SolrQuery

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

参数

percent

返回值

错误/异常

Emits SolrIllegalArgumentException in case of an invalid parameter was passed.

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/solrquery.setgroupcachepercent.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3