diff --git a/module/search/config.php b/module/search/config.php index bba9406de1..68a06841b6 100644 --- a/module/search/config.php +++ b/module/search/config.php @@ -149,7 +149,7 @@ $config->search->fields->aiapp = new stdclass(); $config->search->fields->aiapp->id = 'id'; $config->search->fields->aiapp->title = 'name'; $config->search->fields->aiapp->content = 'desc'; -$config->search->fields->aiapp->addedDate = 'createdBy'; +$config->search->fields->aiapp->addedDate = 'createdDate'; $config->search->fields->aiapp->editedDate = 'editedDate'; /* Set the recPerPage of search. */ diff --git a/module/search/test/tao/processdatalist.php b/module/search/test/tao/processdatalist.php index 1ae067c5fa..004a91dd75 100755 --- a/module/search/test/tao/processdatalist.php +++ b/module/search/test/tao/processdatalist.php @@ -25,7 +25,7 @@ $action->objectType->range('bug'); $action->objectID->range('1,2'); $action->actor->range('admin'); $action->action->range('opened'); -$action->date->range('20230102 000000:0')->type('timestamp')->format('YYYY-MM-DD hh::mm::ss'); +$action->date->range('20230102 000000:0')->type('timestamp')->format('YYYY-MM-DD hh:mm:ss'); $action->comment->prefix('创建bug')->range('1,2'); $action->gen(2); @@ -58,4 +58,4 @@ $dataIdList = array(1, 2); $search = new searchTest(); r($search->processDataListTest($modules[0], $bugField, $dataIdList)) && p('1:comment') && e("创建bug1文件标题1.txt"); //测试处理数据的comment -r($search->processDataListTest($modules[1], $caseField, $dataIdList)) && p('1:desc,expect') && e("用例步骤描述1,这是用例预期结果1"); //测试处理用例的步骤 \ No newline at end of file +r($search->processDataListTest($modules[1], $caseField, $dataIdList)) && p('1:desc,expect') && e("用例步骤描述1,这是用例预期结果1"); //测试处理用例的步骤 diff --git a/test/data/searchindex.yaml b/test/data/searchindex.yaml index c53d3f47a6..0ab49b69e7 100644 --- a/test/data/searchindex.yaml +++ b/test/data/searchindex.yaml @@ -40,17 +40,11 @@ fields: format: "" - field: addedDate note: "添加日期" - from: common.date.v1.yaml - use: dateA - prefix: "" - postfix: "" - loop: 0 - format: "" + range: "(-1M)-(+1w):-1D" + type: timestamp + format: "YYYY-MM-DD hh:mm:ss" - field: editedDate note: "编辑日期" - from: common.date.v1.yaml - use: dateA - prefix: "" - postfix: "" - loop: 0 - format: "" + range: "(-1M)-(+1w):-1D" + type: timestamp + format: "YYYY-MM-DD hh:mm:ss"