|
@@ -41,7 +41,7 @@ class OpenSearch extends Base
|
|
|
$docs_to_upload[]= [
|
|
|
'cmd' => 'ADD',
|
|
|
'fields' => [
|
|
|
- //'id'=>1,
|
|
|
+ 'id'=>1,
|
|
|
'title'=>'qc',
|
|
|
],
|
|
|
];
|
|
@@ -139,7 +139,7 @@ class OpenSearch extends Base
|
|
|
// 指定一个应用用于搜索
|
|
|
$params->setAppName($this->appName);
|
|
|
// 指定搜索关键词
|
|
|
- $params->setQuery("title:'qc'");
|
|
|
+ $params->setQuery("title:'亚马逊'");
|
|
|
$params->setFilter('id>0');
|
|
|
// 指定返回的搜索结果的格式为json
|
|
|
$params->setFormat("fulljson");
|