牛牛在线工具

PHP 函数大全

收录 8868 个 PHP 函数,含用途说明与用法示例。

本地收录 8868 条,找到 8868 条记录

SolrCollapseFunction::setField()

设置Solr Collapse查询功能的方法

SolrCollapseFunction::setField()是一个用于设置Solr Collapse查询功能的方法。该方法用于指定用于折叠(合并)结果的字段。 用法: public SolrCollapseFunction SolrCollapseFunction::se…

SolrCollapseFunction::getSize()

获取 Solr Collapse 查询结果中的每个 Collapse Group 的文档数量

函数名称:SolrCollapseFunction::getSize() 适用版本:Solr 7.0.0 及更高版本 用法:SolrCollapseFunction::getSize() 方法用于获取 Solr Collapse 查询结果中的每个 Collapse Group…

SolrCollapseFunction::getNullPolicy()

获取Solr折叠函数的null策略

SolrCollapseFunction::getNullPolicy()函数用于获取Solr折叠函数的null策略。在Solr中,折叠函数用于将搜索结果按照指定的字段进行分组,并只返回每个组中的第一个文档。 该函数的用法如下: public function SolrCol…

SolrCollapseFunction::getMin()

获取折叠查询的最小值

SolrCollapseFunction::getMin()是PHP Solr扩展中的一个函数,用于获取折叠查询的最小值。下面是该函数的详细用法和示例: 用法: float SolrCollapseFunction::getMin() 参数: 该函数没有参数。 返回值: …

SolrCollapseFunction::getMax()

Solr搜索引擎中的折叠(collapse)功能

SolrCollapseFunction::getMax()是一个PHP函数,适用于Solr搜索引擎中的折叠(collapse)功能。它用于获取折叠(collapse)的最大值。 使用方法如下: SolrCollapseFunction::getMax(): SolrColl…

SolrCollapseFunction::getHint()

获取 SolrCollapseFunction 对象的折叠提示

函数名:SolrCollapseFunction::getHint() 适用版本:Solr 4.0.0 及以上版本 函数用法:SolrCollapseFunction::getHint() 方法用于获取 SolrCollapseFunction 对象的折叠提示。 语法:st…

SolrCollapseFunction::getField()

获取 SolrCollapseFunction 对象的字段名称

函数名:SolrCollapseFunction::getField() 适用版本:Solr 4.0.0 及以上版本 用法:SolrCollapseFunction::getField() 函数用于获取 SolrCollapseFunction 对象的字段名称。 示例: …

SolrClientException::getInternalInfo()

获取Solr客户端异常的内部信息

PHP函数:SolrClientException::getInternalInfo() 适用版本:PHP 5.3.0及以上版本 函数用法: SolrClientException::getInternalInfo()函数用于获取Solr客户端异常的内部信息。当Solr客户端…

SolrClient::__destruct()

在对象销毁时自动调用,用于释放SolrClient对象所占用的资源

函数名称:SolrClient::__destruct() 适用版本:PHP 5 >= 5.2.0, PHP 7, PECL solr >= 0.9.2 函数描述:SolrClient::__destruct() 方法在对象销毁时自动调用,用于释放SolrClient对象所占…

SolrClient::__construct()

创建一个新的 SolrClient 对象

函数名:SolrClient::__construct() 适用版本:PHP 5 >= 5.2.0, PECL solr >= 0.9.2 用法:SolrClient::__construct() 函数用于创建一个新的 SolrClient 对象。 语法:SolrClien…

SolrClient::threads()

获取Solr服务器中所有正在运行的线程的信息

函数名:SolrClient::threads() 函数描述:该函数用于获取Solr服务器中所有正在运行的线程的信息。 适用版本:SolrClient::threads()函数在Solr PHP扩展版本5.2.0及以上版本中可用。 语法:array SolrClient::…

SolrClient::system()

获取 Solr 服务器的系统信息

函数名:SolrClient::system() 适用版本:SolrClient 4.0.0 及以上版本 用法:SolrClient::system() 函数用于获取 Solr 服务器的系统信息。 语法:public string SolrClient::system() …

SolrDisMaxQuery::addBigramPhraseField()

向SolrDisMaxQuery对象添加一个双字词组字段,以便在查询中使用双字词组进行匹配

函数名称:SolrDisMaxQuery::addBigramPhraseField() 适用版本:Solr PHP扩展版本 >= 2.2.0 函数描述:该函数用于向SolrDisMaxQuery对象添加一个双字词组字段,以便在查询中使用双字词组进行匹配。 用法: pub…

SolrDocument::hasChildDocuments()

检查当前SolrDocument对象是否有子文档

函数名称:SolrDocument::hasChildDocuments() 函数描述:检查当前SolrDocument对象是否有子文档。 适用版本:该函数适用于Solr客户端扩展版本2.0.0及以上。 语法:bool SolrDocument::hasChildDocum…

SolrDocument::getInputDocument()

获取Solr文档的原始输入数据

函数名称:SolrDocument::getInputDocument() 适用版本:Solr 2.2.0及更高版本 函数说明:SolrDocument::getInputDocument()方法用于获取Solr文档的原始输入数据。 用法示例: // 创建一个新的Solr…

SolrDocument::getFieldNames()

获取Solr文档中所有字段的名称

函数名:SolrDocument::getFieldNames() 适用版本:Solr 2.2.0及以上版本 用法:SolrDocument::getFieldNames()函数用于获取Solr文档中所有字段的名称。 示例: // 创建一个Solr文档对象 $doc = …

SolrDocument::getFieldCount()

获取SolrDocument对象中存储的字段数量

函数名称:SolrDocument::getFieldCount() 适用版本:PHP 5.2.0 及以上 函数描述:该函数用于获取SolrDocument对象中存储的字段数量。 用法示例: // 创建一个 SolrDocument 对象 $doc = new SolrD…

SolrDocument::getField()

获取Solr文档中指定字段的值

函数名称:SolrDocument::getField() 函数描述:该函数用于获取Solr文档中指定字段的值。 适用版本:该函数在Solr扩展版本2.0.0及以上可用。 语法:public SolrDocument::getField(string $fieldName)…

SolrDocument::getChildDocumentsCount()

获取SolrDocument对象中子文档的数量

函数名称:SolrDocument::getChildDocumentsCount() 函数描述:该函数用于获取SolrDocument对象中子文档的数量。 适用版本:该函数在Solr PHP扩展版本2.4.0及以上可用。 用法示例: // 创建一个SolrDocumen…

SolrDocument::getChildDocuments()

获取SolrDocument对象中的子文档(child document)

函数名称:SolrDocument::getChildDocuments() 适用版本:Solr 2.2.0以上 函数描述:该函数用于获取SolrDocument对象中的子文档(child document)。在Solr中,子文档是一个SolrDocument的集合,可以通过…

SolrDocument::fieldExists()

检查Solr文档中是否存在指定的字段

函数名称:SolrDocument::fieldExists() 适用版本:Solr扩展版本 >= 2.2.0 函数描述:该函数用于检查Solr文档中是否存在指定的字段。 用法: bool SolrDocument::fieldExists(string $fieldNa…

SolrDocument::deleteField()

从Solr文档中删除指定字段的值

函数名:SolrDocument::deleteField() 适用版本:Solr PHP扩展版本>=2.4.0 用法:该方法用于从Solr文档中删除指定字段的值。 语法: bool SolrDocument::deleteField(string $fieldName) …

SolrDocument::current()

返回当前迭代的 SolrDocument 对象

函数名:SolrDocument::current() 适用版本:Solr 2.2.0+ 用法:SolrDocument::current() 函数用于返回当前迭代的 SolrDocument 对象。 示例: // 创建一个 SolrDocument 对象 $doc1 =…

SolrDocument::clear()

清除Solr文档对象中的所有字段和值

函数名称:SolrDocument::clear() 函数描述:该函数用于清除Solr文档对象中的所有字段和值。 适用版本:该函数在Solr PECL扩展版本1.0.0及以上可用。 语法:bool SolrDocument::clear() 返回值:如果成功清除所有字段和…

上一页第 266 / 370 页下一页