在线文档教程
PHP
Solr

SolrCollapseFunction::setHint

SolrCollapseFunction::setHint

(PECL solr >= 2.2.0)

SolrCollapseFunction::setHint — Sets collapse hint

Description

public SolrCollapseFunction SolrCollapseFunction::setHint ( string $hint )

Sets collapse hint

Parameters

hint

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

Return Values

SolrCollapseFunction

Examples

Example #1 SolrCollapseFunction::setHint() example

<?php /* ... */ ?>

The above example will output something similar to:

...

← SolrCollapseFunction::setField

SolrCollapseFunction::setMax →

© 1997–2017 The PHP Documentation Group

Licensed under the Creative Commons Attribution License v3.0 or later.

https://secure.php.net/manual/en/solrcollapsefunction.sethint.php