This module implements core search functionality. It is responsible for searching projects and nonprofits.
Getting Started
Prerequisites
This module relies on django-haystack to do full-text search. It was implemented and tested on top of ElasticSearch but should work with any backend.
Installing
Install django-ovp-search:
pip install ovp-search
Add it to INSTALLED_APPS on settings.py
Add haystack to INSTALLED_APPS
Set up haystack connection:
HAYSTACK_CONNECTIONS = { 'default': { 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', 'URL': 'http://%s/' % (os.environ.get('HS_SEARCH_ENDPOINT', '127.0.0.1:9200')), 'INDEX_NAME': 'atadosovp' }, }
Forking
If you have your own OVP installation and want to fork this module to implement custom features while still merging changes from upstream, take a look at django-git-submodules.
Testing
To test this module
python ovp_searcb/tests/runtests.py
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
License
This project is licensed under the AGPLv3 License see the LICENSE.md file for details
Release files for ovp-search 1.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ovp-search-1.0.16.tar.gz | 44.2 kB | Details |
Release files / ovp-search-1.0.16.tar.gz
| Download URL | ovp-search-1.0.16.tar.gz |
|---|---|
| Size | 44.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
51666802d091374857c369a854f554e9f190207b8ccdd888d2e93f8cf2ccc02e
|
|
BLAKE2b-256 checksum How to use checksums |
fb8fd0477e04e4ca9edb97c95d3d3d72176f2baf2ab06c840de99a532b73e005
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |