Search but it actually works

* Point to my fork of xapian-haystack
This commit is contained in:
Matthias Portzel 2021-12-22 23:13:27 -08:00
parent 13dd18b28a
commit 48496ec839
4 changed files with 4 additions and 9 deletions

7
README
View File

@ -18,13 +18,6 @@ python -m venv venv
pip install -r requirements.txt
# To install xapian to power /search:
git clone https://github.com/notanumber/xapian-haystack.git
cd xapian-haystack
git remote add inscape https://github.com/inkscape/xapian-haystack.git
git fetch inscape
git cherry-pick d1346dc53f35b0960badf6435cff468c648de694
pip install ./xapian-haystack
# Check the latest version of xapian from https://github.com/xapian/xapian/tags
. install_xapain <version>

View File

@ -6,4 +6,4 @@ Markdown~=3.3.4
jetforce
python-decouple
django-haystack
git+https://github.com/notanumber/xapian-haystack.git
git+https://tildegit.org/matthias/xapian-haystack.git

View File

@ -29,7 +29,7 @@
<div class="main">
<span class="main-text text">{{ thought.object.text|urlize }}</span>
<a href="/?show={{thought.uuid}}" class="button show-more">Show</a>
<a href="/?show={{thought.object.uuid}}" class="button show-more">Show</a>
</div>
<div class="thought-end">

View File

@ -49,6 +49,8 @@ INSTALLED_APPS = [
"main",
]
HAYSTACK_SIGNAL_PROCESSOR = "haystack.signals.RealtimeSignalProcessor"
HAYSTACK_CONNECTIONS = {
"default": {
"ENGINE": "xapian_backend.XapianEngine",