From 69ef57cdec7545d6c61c830b34083da8d04a3e3b Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 23 Jan 2013 00:17:15 +0000 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E4=BD=9C=E8=80=85=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E6=95=B0=E6=8D=AE=E6=97=B6=E4=B9=9F=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/default/controllers/AuthorController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/application/default/controllers/AuthorController.php b/application/default/controllers/AuthorController.php index 2f28ef64..29a9b93d 100644 --- a/application/default/controllers/AuthorController.php +++ b/application/default/controllers/AuthorController.php @@ -2145,7 +2145,16 @@ class AuthorController extends Zend_Controller_Action $data = array("commited"=>1,"error"=>$this->alertbox('ok','该版本已经成功发布!')); $this->jsonexit($data); return true; - } + } + //update search document + $search=new Search(); + //create search view in xunsearch + //$sql="select m.uuid,m.title,m.description,x.data,array_to_string(ARRAY( SELECT keyword.keyword FROM keyword WHERE keyword.id = m.id), ', '::text) AS keyword from normalmetadata m left join xml x on m.id=x.id where m.uuid=?"; + $sql="select * from xunsearch where uuid=?"; + $sth = $this->db->prepare($sql); + $sth->execute(array($row['uuid'])); + $row = $sth->fetch(); + $search->update($row); }catch(Exception $e) { $msg = "提交失败,请确认权限后重试"; if($this->debug>0)