示例#1
0
def query(q):
	""" Call the core search engine to get the query results. """
	from core.secore import SearchEngine
	se = SearchEngine()
	se.config("config.xml")
	return se.query(q)
示例#2
0
文件: robot.py 项目: zaviichen/asimo
#! /usr/bin/env python

# -------------------------------------------------------------
# Author:    Chen Zhihui ([email protected])
# Date:      05/24/2010
# Version:   1.1
# Copyright (c) 2010 by Chen Zhihui. All Rights Reserved.
# -------------------------------------------------------------

""" Interface to create or update the database. """

from core.secore import SearchEngine
	
se = SearchEngine()
se.config("config.xml")
se.collect_page()
se.index()