...isset($_SERVER['argv']) ? $_SERVER['argv'] : array(); for ($i = 0; $i < count($params); $i++) { if ($params[$i] === '--') { for ($i = $i + 1; $i < count($params); $i++) { $result['-'][] = $params[$i]; } break; } elseif ($params[$i][0] ...
... $conns[] = $conn; } } } if (count($conns) > 1) { shuffle($conns); } for ($i = 0; $i < count($conns); $i++) { try { $this->_search = new XSSearch($conns[$i], $this); $this->_search->setCha...
...3 字节),此规则同时适用于 > [XSSearch::search] 和 [XSSearch::count] 的 `$query` 参数。 搜索语句举例如下: ~~~ [php] $search->search('上海人民公园'); // 检索 body 型字段及混合区 $search->search('上海 人民公园'); // 用空格连接 2 个关键词, 这...
...is->appendBuffer(implode('', $cmds)); } else { for ($i = 0; $i < count($cmds) - 1; $i++) { $this->execCommand($cmds[$i]); } $this->execCommand($cmds[$i], XS_CMD_OK_RQST_FINISHED); } // after submit $doc->afterSubmit($this); return $this;} 更新索...
...$field->vno = ($field->type == XSFieldMeta::TYPE_BODY) ? self::MIXED_VNO : count($this->_vnoMap); $this->_vnoMap[$field->vno] = $field->name; // save field, ensure ID is the first field if ($field->type == XSFieldMeta::TYPE_ID) { $this->_fields = array_merge(array($field->name => $fi...
...数据 - **one()**: 返回一行数据 - **all()**: 返回全部数据 - **count()**: 统计数据匹配数据,是估算的并不是完全准确 - **exists()**: 判断查询条件是否存在数据 - **where()**: 指定搜索条件 - **orderBy()**: 指定排序方式,默认为相关性排序 - *...
...ufSize > 0) { $this->appendBuffer(implode('', $cmds)); } elseif (count($cmds) == 1) { $this->execCommand($cmds[0], XS_CMD_OK_RQST_FINISHED); } else { $cmd = array('cmd' => XS_CMD_INDEX_EXDATA, 'buf' => implode('', $cmds)); $this->execCommand($cmd, XS_CMD_OK_RQST_FIN...