增加分平台的搜索功能
This commit is contained in:
parent
f82733a57b
commit
dd95c140b1
|
@ -21,6 +21,8 @@ visual_db.port = 5432
|
||||||
|
|
||||||
auth.identifier = grassland
|
auth.identifier = grassland
|
||||||
auth.groupname = 青海省草原总站
|
auth.groupname = 青海省草原总站
|
||||||
|
sub.metadata = grasslandmd
|
||||||
|
sub.search = grasslandmd
|
||||||
|
|
||||||
google.maps.api=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg
|
google.maps.api=ABQIAAAACD-MqkkoOm60o_dvwdcKVhRBSKpgcP88GYi6r2Of16IkMX_4YhSBQsywCi4J2_fh4nBuWmK7gyRjLg
|
||||||
bing.api=4BC90E1E9ED351ECE0D9FB71509BC3CC1264340C
|
bing.api=4BC90E1E9ED351ECE0D9FB71509BC3CC1264340C
|
||||||
|
@ -32,7 +34,6 @@ paths.newsletter=images/newsletter/
|
||||||
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
|
logging.file = /var/www/test.westgis.ac.cn/data/logs/debug.log
|
||||||
page.limit=10
|
page.limit=10
|
||||||
import.dir=../data/import
|
import.dir=../data/import
|
||||||
sub.metadata = grasslandmd
|
|
||||||
title.site=青海省草原总站
|
title.site=青海省草原总站
|
||||||
title.data=数据产品与服务
|
title.data=数据产品与服务
|
||||||
title.review=数据评审
|
title.review=数据评审
|
||||||
|
|
|
@ -66,7 +66,8 @@ class Search
|
||||||
function __construct($text='')
|
function __construct($text='')
|
||||||
{
|
{
|
||||||
require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php';
|
require_once '/home/wlx/xunsearch/sdk/php/lib/XS.php';
|
||||||
$this->xs=new XS('westdc');
|
$config = Zend_Registry::get('config');
|
||||||
|
$this->xs=new XS($config->sub->search);
|
||||||
$this->search=$this->xs->search;
|
$this->search=$this->xs->search;
|
||||||
$this->terms = array();
|
$this->terms = array();
|
||||||
$this->text=$text;
|
$this->text=$text;
|
||||||
|
|
Loading…
Reference in New Issue