Example #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)
Example #2
0
#! /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()