php8.5
Home/ Manual/ solr / solrcollapsefunction/ SolrCollapseFunction::setHint

SolrCollapseFunction::setHint

PHP function Edit on GitHub ✎

(PECL solr >= 2.2.0)

Sets collapse hint

Description

SolrCollapseFunction::setHint(string $hint): SolrCollapseFunction

Sets collapse hint

Parameters

hint

Currently there is only one hint available "top_fc", which stands for top level FieldCache

Return Values

SolrCollapseFunction

Examples

SolrCollapseFunction::setHint() example

php
<?php

/* ... */

?>

The above example will output something similar to:

output
...

Source: reference/solr/solrcollapsefunction/sethint.xml · from the official PHP manual (php/doc-en)