wupengfei 2 years ago
parent
commit
8ecd7fefa0
2 changed files with 3 additions and 3 deletions
  1. 1 1
      .idea/workspace.xml
  2. 2 2
      application/api/controller/OpenSearch.php

+ 1 - 1
.idea/workspace.xml

@@ -250,7 +250,7 @@
       <workItem from="1677805207495" duration="7323000" />
       <workItem from="1678063982310" duration="24531000" />
       <workItem from="1678149106133" duration="24129000" />
-      <workItem from="1678236784872" duration="3295000" />
+      <workItem from="1678236784872" duration="3322000" />
     </task>
     <servers />
   </component>

+ 2 - 2
application/api/controller/OpenSearch.php

@@ -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");