...is->_fields as $name => $field) { if ($field->type === XSFieldMeta::TYPE_STRING && !$field->isBoolIndex()) { return $field; } } return false;} 获取标题字段元数据
... $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$name' cann't be used for facets search, can only be string type"); } $buf .= chr($ff->vno); } $cmd = array('cmd' => XS_CMD_SEARCH_SET_FACETS, 'buf' ...
...is->_fields as $name => $field) { if ($field->type === XSFieldMeta::TYPE_STRING && !$field->isBoolIndex()) { return $field; } } return false;} 获取标题字段元数据 getIterator() 方法 public void getIterator() 源码: sdk/php/lib/XSFieldScheme...
... $ff = $this->xs->getField($name); if ($ff->type !== XSFieldMeta::TYPE_STRING) { throw new XSException("Field `$name' cann't be used for facets search, can only be string type"); } $buf .= chr($ff->vno); } $cmd = array('cmd' => XS_CMD_SEARCH_SET_FACETS, 'buf' ...