... 修正后的搜索语句 源码: sdk/php/lib/XSSearch.class.php#L949 (显示) public function addQueryString($query, $addOp = XS_CMD_QUERY_OP_AND, $scale = 1){ $query = $this->preQueryString($query); $bscale = ($scale > 0 && $scale != 1) ? pack('n', intval($scale * 100)) : ''; $cmd = ...
...anage port -l | grep 8384 看看这个端口有没有服务占用,如果显示: /usr/sbin/semanage: Port tcp/8384 already defined 说明这个端口被占用了,换一个没有被占用的端口吧。 如果8384没有被占用 semanage port -a -t http_port_t -p tcp 8384 这时候在...
...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L401 (显示) public function setFacets($field, $exact = false){ $buf = ''; if (!is_array($field)) { $field = array($field); } foreach ($field as $name) { $ff = $this->xs->getField($name); if ($ff->...
...数,默认不指定 源码: sdk/php/lib/XSTokenizer.class.php#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . ...
... 最大长度为 255字节 源码: sdk/php/lib/XSServer.class.php#L62 (显示) public function __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { ...
...n} mixed 转换后的数据 源码: sdk/php/lib/XS.class.php#L550 (显示) public static function convert($data, $to, $from){ // need not convert if ($to == $from) { return $data; } // array traverse if (is_array($data)) { foreach ($data as $key => $value) { ...
...搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L707 (显示) public function getRelatedQuery($query = null, $limit = 6){ $ret = array(); $limit = max(1, min(20, intval($limit))); // Simple to disable query with field filter if ($query === null) { $query = $th...
... protected void connect() 源码: sdk/php/lib/XSServer.class.php#L452 (显示) protected function connect(){ // connect to server $conn = $this->_conn; if (is_int($conn) || is_numeric($conn)) { $host = 'localhost'; $port = intval($conn); } elseif (!strncmp($conn, 'file...
...段的配置内容 源码: sdk/php/lib/XSFieldScheme.class.php#L139 (显示) public function addField($field, $config = null){ if (!$field instanceof XSFieldMeta) { $field = new XSFieldMeta($field, $config); } if (isset($this->_fields[$field->name])) { throw new XSExcepti...
...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L289 (显示) public function setSort($field, $asc = false, $relevance_first = false){ if (is_array($field)) { return $this->setMultiSort($field, $asc, $relevance_first); } if ($field === null) { $cmd = new X...