http://zeyang.alwaysdata.net/metasearch
- Aggregated and non-aggregated search mode
- Client-side and server-side validation
- Query pre-processing
- Boolean operator support
- Optional cluster feature
-
Make sure the following software are installed in your system:
- Python 2.7.x ( http://python.org/download/ )
- Django 1.5.x ( https://www.djangoproject.com/download/ )
-
Install the following Python package:
- requests 2.0.0 ( https://pypi.python.org/pypi/requests/2.0.0 )
-
Create a new Django project or choose from one of your existing Django projects, then unzip "metasearch" folder into that project's root folder.
-
Edit the following sector in
settings.py
of that project:- In
INSTALLED_APPS
append 'metasearch'
- In
-
Edit
urls.py
of that project:- In
patterns()
append the following line:url(r'^metasearch/', include('metasearch.urls')),
- In
-
If you are using Django's own development server, just run
manage.py
of your project and locatehttp://your-domain:port/metasearch/
in your browser. -
For Apache httpd server (only applicable for version 2.2.xx), in WSGI mode:
- Install
mod_wsgi
module for Apache. ( https://code.google.com/p/modwsgi/wiki/DownloadTheSoftware?tm=2 ) - Open
httpd.conf
inyour_apache_path/conf/
, and append the following lines at the end of file:#change the path into your actual path of mod_wsgi.so LoadModule wsgi_module /your_apache_path/modules/mod_wsgi.so #change the path into your project's path of /static/ Alias /static/ your_project_path/static/ #change the path into your project's path of /static/ <Directory your_project_path/static/> Order deny,allow Allow from all </Directory> #change the path into your project's path of wsgi.py WSGIScriptAlias / your_project_path/your_app/wsgi.py #change the path into your project's path WSGIPythonPath your_project_path #change the path into the path that contains your wsgi.py <Directory your_project_path/your_app> <Files wsgi.py> Order deny,allow Allow from all </Files> </Directory>
- Run Apache and locate
http://your-domain:port/metasearch/
in your browser.
- Install
Zeyang Lin zeyanglin2013@gmail.com