Search backend for Wagtail CMS using Whoosh engine.
0 2 0 2 0 2 0 2 Figure 2: Spectrogram figures for unmodified watch events. The events displayed are: (A) short blow, (B) double blow, (C) long blow, (D) swipe up, (E) swipe down, (F) clockwise blow, (G) shoosh, (H) open exhale, (I)-(J) sip-and-puff. Lasting between 400-500ms (see Figure2B). The double blow is analogous to a double click.
How to use
0.1.x
work withwagtail>=2.0,<2.2
0.2.x
work withwagtail>=2.2
Whoosh 2019 Vbs Themes Video
pip install wagtail-whoosh
After installing this package, add
wagtail_whoosh
to INSTALLED_APPS. And then config WAGTAILSEARCH_BACKENDS
Set
./manage.py update_index
as cron jobFeatures
Support autocomplete
If you want to search
hello world
, you might need to use hello
in previous versions. Now you can use hel
and the backend would return the result.Specifying the fields to search
Score support
Language support
Whoosh 2019 Vbs Themes
Whoosh includes pure-Python implementations of the Snowball stemmers and stop word lists for various languages adapted from NLTK.
So you can use the built-in language support by setting like
'LANGUAGE': 'fr'
, the language support list is below.('ar', 'da', 'nl', 'en', 'fi', 'fr', 'de', 'hu', 'it', 'no', 'pt', 'ro', 'ru', 'es', 'sv', 'tr')
If you want more control or want to do customization, you can use
ANALYZER
instead of LANGUAGE
here.An analyzer is a function or callable class (a class with a call method) that takes a unicode string and returns a generator of tokens
Woosh 2019
You can set
ANALYZER
using an object reference or dotted module path.NOTE: If ANALYZER is set, your LANGUAGE would be ignored
![Whoosh 2.0.2 Whoosh 2.0.2](/uploads/1/2/6/0/126064880/941358384.png)
NOT-Supported features
facet
is not supported.