首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

SphinxClient::addQuery

(PECL sphinx >= 0.1.0)

SphinxClient::addQuery — Add query to multi-query batch

Description

代码语言:javascript
复制
public int SphinxClient::addQuery ( string $query [, string $index = "*" [, string $comment = "" ]] )

Adds query with the current settings to multi-query batch. This method doesn't affect current settings (sorting, filtering, grouping etc.) in any way.

Parameters

query

Query string.

index

An index name (or names).

comment

Return Values

Returns an index in an array of results that will be returned by SphinxClient::runQueries call or false on error.

See Also

  • SphinxClient::runQueries
  • SphinxClient::query

← SphinxClient

SphinxClient::buildExcerpts →

代码语言:txt
复制
 © 1997–2017 The PHP Documentation Group

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

扫码关注腾讯云开发者

领取腾讯云代金券