forked from biolds/sosse
-
Notifications
You must be signed in to change notification settings - Fork 0
Selenium Open Source Search Engine
License
pa-0/sosse
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
echo 'deb http://deb.debian.org/debian bullseye-backports main' > /etc/apt/sources.list.d/bullseye-backports.list apt update apt install python3-django/bullseye-backports python3-requests python3-bs4 python3-html5lib python3-psycopg2 python3-django-uwsgi python3-langdetect python3-pygal python3-magic python3-defusedxml python3-selenium libjs-jquery postgresql nginx uwsgi chromium chromium-driver su postgres -c "psql --command \"CREATE USER django WITH SUPERUSER PASSWORD 'password'\"" su postgres -c "psql --command \"CREATE DATABASE django OWNER django\"" In settings.py: DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'django', 'USER': 'django', 'PASSWORD': 'password', 'HOST': '127.0.0.1', 'PORT': '5432', } } Change SECRET_KEY and ALLOWED_HOSTS ./manage.py collectstatic ./manage.py createsuperuser ./manage.py loaddata se.json Adding an OpenSearch search engine: ./manage.py load_se opensearch.xml Adding a language: - check/add support for the language detection in Langdetect (https://pypi.org/project/langdetect/) - check/add support for the language in postgresql (https://www.postgresql.org/docs/current/textsearch-dictionaries.html) - add the new entry to the SOSSE_LANGDETECT_TO_POSTGRES option, where the key is ISO 639-1 code for this language, and the value, the name of the language as stored in PostgreSQL Parameters: - q : search param - p : page number - ps : page size - l : language used to parse the query
About
Selenium Open Source Search Engine
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 77.2%
- HTML 9.3%
- CSS 4.2%
- JavaScript 3.3%
- RobotFramework 2.4%
- Makefile 1.7%
- Other 1.9%