...页面时到服务器的连接被重置。 // 加载 XS 入口文件 require_once '/home/who/xunsearch/sdk/php/lib/XS.php'; 这段包含代码去掉就能正常显示,一包含XS.php就无法载入页面。我把xs.php复制到网站目录后包含或者直接访问也是一样,请问是...
写个页面包含了 require_once '/data/new_shop/public/xunsearch-full/sdk/php/lib/XS.php'; 文件或者生成demo搜索页都报同一个错误; 错误:[XSErrorException] ../../../software/install/xunsearch-full/sdk/php/lib/XS.php(501): xcache_get(): XCache var cache was not initialize...
require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...
require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...
...用 `$prefix/sdk/php/app/项目名.ini`,例子代码如下: ~~~ [php] require_once '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); // 自动使用 $prefix/sdk/php/app/demo.ini 作项目配置文件 $xs = new XS('/path/to/demo.ini'); // 使用 /path/to/demo.ini ~~~ > note: 自 v1.4.9 起,...
...both [goods_sn] index = both tokenizer = full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, 'goods_name' => 'hello my goodsname', 'goods_sn' => 'RX8899-114' ); $doc = new XS...
... 实际上有3428条,有许多相关数据,就是搜不到。 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('zl'); $index = $xs->index; $doc = new XSDocument; $conn=mysql_connect("localhost", "root", "111111") or die("Could not connect: " . mysql_error()); m...
...。 官方用法指南详见 ```php // 加载 vendor 的 autoload 文件 require_once 'vendor/autoload.php'; // 默认的 xunsearch 应用配置文件目录为 vendor/hightman/xunsearch/app // 如有必要,请通过常量 XS_APP_ROOT 定义 define ('XS_APP_ROOT', '/path/to/ini') // 创建 XS ...
... $name . '.class.php'; if (file_exists($file)) { require_once $file; } else if (file_exists(XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file)) { require_once XS_LIB_ROOT . DIRECTORY_SEPARATOR . $file; } if (!class_exists($name)) { ...
... echo '500'; } 删除 require_once($xsPath . '/XS.php'); try { $xs = new XS('projectname'); $index = $xs->index; $index->del($tid); ...