function indexAction(){
$kw = $this->input->get('kw');
//分页
//$p = $this->input->get('p');
$p = (int)$this->input->get('p') > 0 ? (int)$this->input->get('p') : 1;
//var_dump( $this->db );
//$res = $this->db->query( 'select * from crawl_contents limit 10' )->result_array();
App::auto_load('sphinxapi');
$sp = new SphinxClient ();
$host = $this->site['SITE_SEARCH_SPHINX_HOST'];
$port = (int)$this->site['SITE_SEARCH_SPHINX_PORT'];
$name = $this->site['SITE_SEARCH_SPHINX_NAME'];
$start= ($p - 1) * (int)$this->site['SITE_SEARCH_PAGE'];
$limit= (int)$this->site['SITE_SEARCH_PAGE'];
$kw = $this->input->get('kw');
//分页
//$p = $this->input->get('p');
$p = (int)$this->input->get('p') > 0 ? (int)$this->input->get('p') : 1;
//var_dump( $this->db );
//$res = $this->db->query( 'select * from crawl_contents limit 10' )->result_array();
App::auto_load('sphinxapi');
$sp = new SphinxClient ();
$host = $this->site['SITE_SEARCH_SPHINX_HOST'];
$port = (int)$this->site['SITE_SEARCH_SPHINX_PORT'];
$name = $this->site['SITE_SEARCH_SPHINX_NAME'];
$start= ($p - 1) * (int)$this->site['SITE_SEARCH_PAGE'];
$limit= (int)$this->site['SITE_SEARCH_PAGE'];