xunsearch 1.1.0 数据库mysql 字符集 utf8 配置文件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = s...
配置是这样的: project.name = medical project.default_charset = utf-8 server.index = 10.19.90.96:8383 server.search = 10.19.90.96:8384 我本地和测试机用的都是96上的库,代码写好了,生成索引库,然后访问,我本地所有数据都能出来,可是96测试...
...放心的用 $doc->from 取值吧,会自动转的 [/quote] ini文件: project.name = pin_115_gjh project.default_charset = UTF-8 [id] type = id [name] type = title [create_time] type = numeric [enterprise_id] type = numeric [image_url] [img_type] [category] index = mixed [source] [sour...
... (1里面也是xx.ini 但是没有设置server.index和server.search) project.name = xxxx project.chartset = UTF-8 server.index = x.x.x.1:8383 server.search = x.x.x.1:8384 我的搜索代码在2中然后搜索 提示"Connection refused(C#111) 请问我是哪里出错了 在线等啊
...示) public function getDefaultCharset(){ return isset($this->_config['project.default_charset']) ? strtoupper($this->_config['project.default_charset']) : 'UTF-8';} 获取项目的默认字符集 getField() 方法 public XSFieldMeta getField(mixed $name, bool $throw=tru...
... ( $table_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); $result = $this->temp_db->get_where($table, array($table_key_array[$table] => $id))->row_array(); if(empty...
...7.0.0.1:8384) subhd.ini 和 demo.ini 放在同一目录 内容如下 project.name = subhd project.default_charset = utf-8 server.index = 8383 server.search = 8384 [sub_ID] type = id [sub_title] type = title [sub_edition] type = title [sub_text] type = body [sub_date] typ...
...hr] [XSException] lib/XS.php(1834): Failed to create home directoy of the project(S#508) #0 ../phplib/XS.php(1809): XSServer->execCommand(Array, 201) #1 ../phplib/XS.php(1770): XSServer->setProject('discuz') #2 ../phplib/XS.php(1753): XSServer->open(8383) #3 ../phplib/XS.php(300): XSServer->__c...
1、配置文件search.ini [code] project.name = search project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] type = id [title] type = title [content] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, c...
getName() 方法 public string getName() {return} string 当前项目名称 源码: sdk/php/lib/XS.class.php#L368 (显示) public function getName(){ return $this->_config['project.name'];} 获取当前项目名称