mirror of
https://github.com/wagtail/wagtail.git
synced 2024-12-01 11:41:20 +01:00
A Django content management system focused on flexibility and user experience
https://wagtail.org/
7af321a2e9
When a field uses the partial matching, the edgengram_analyser is added to that field. This breaks down the field data into "ngrams" like so: Hello -> "H", "He", "Hel", "Hell", "Hello" This allows a users query for "Hel" to match the above text. The issue that this commit solves is that this was accidentally set as both the index analyser (as described above) and also the query analyser. Setting this as the query analyser will instruct Elasticsearch to perform the above transformation on the users input to the box as well. So if, for example, there was a document with the word "Horse" in it, a users query for "Hello" will match this simply because they both start with the letter "H". The solution is to simply set the "index_analyser" instead of the "analyser" field (which will sets "query_analyser" as well). |
||
---|---|---|
.tx | ||
docs | ||
scripts/install | ||
wagtail | ||
.coveragerc | ||
.gitignore | ||
.travis.yml | ||
CHANGELOG.txt | ||
CONTRIBUTORS.rst | ||
LICENSE | ||
Makefile | ||
MANIFEST.in | ||
README.rst | ||
requirements-dev.txt | ||
runtests.py | ||
setup.py | ||
tox.ini |
.. image:: https://travis-ci.org/torchbox/wagtail.png?branch=master :target: https://travis-ci.org/torchbox/wagtail .. image:: https://coveralls.io/repos/torchbox/wagtail/badge.png?branch=master&zxcv1 :target: https://coveralls.io/r/torchbox/wagtail?branch=master .. image:: https://pypip.in/v/wagtail/badge.png?zxcv :target: https://crate.io/packages/wagtail/ Wagtail CMS =========== .. image:: http://i.imgur.com/4pbWQ35.png Wagtail is a Django content management system built originally for the `Royal College of Art <http://www.rca.ac.uk/>`_ and focused on flexibility and user experience. Its features include: * A fast, attractive editor interface * Complete control over design with standard Django templates * Configure content types through standard Django models * Tightly integrated search (with an `Elasticsearch <http://www.elasticsearch.org/>`_ backend for production) * Strong document and image management * Wide support for embedded content * Simple, configurable permissions * Support for tree-based content organisation * Optional preview->submit->approve workflow * Fast out of the box. `Varnish <https://www.varnish-cache.org/>`_-friendly if you need it * A simple `form builder <http://docs.wagtail.io/en/latest/core_components/form_builder.html>`_ * Optional `static site generation <http://docs.wagtail.io/en/latest/contrib_components/static_site_generation.html>`_ * Excellent `test coverage <https://coveralls.io/r/torchbox/wagtail?branch=master>`_ Find out more at `wagtail.io <http://wagtail.io/>`_. Got a question? Ask it on our `Google Group <https://groups.google.com/forum/#!forum/wagtail>`_. Who's using it? ~~~~~~~~~~~~~~~ We've a list of public Wagtail sites here: https://github.com/torchbox/wagtail/wiki/Public-Wagtail-sites Got one of your own? Feel free to add it! Getting started ~~~~~~~~~~~~~~~ * To get you up and running quickly, we've provided a demonstration site with all the configuration in place, at `github.com/torchbox/wagtaildemo <https://github.com/torchbox/wagtaildemo/>`_; see the `README <https://github.com/torchbox/wagtaildemo/blob/master/README.md>`_ for installation instructions. * See the `Getting Started <http://wagtail.readthedocs.org/en/latest/getting_started/installation.html>`_ docs for installation (with the demo app) on a fresh Debian/Ubuntu box with production-ready dependencies, on OS X and on a Vagrant box. * `Serafeim Papastefanos <https://github.com/spapas>`_ has written a `tutorial <http://spapas.github.io/2014/02/13/wagtail-tutorial/>`_ with all the steps to build a simple Wagtail site from scratch. * We've also provided a skeletal django-template to get started on a blank site: https://github.com/torchbox/wagtail-template Documentation ~~~~~~~~~~~~~ Available at `wagtail.readthedocs.org <http://wagtail.readthedocs.org/>`_ and always being updated. Compatibility ~~~~~~~~~~~~~ Wagtail supports Django 1.6.2+ and 1.7.0+ on Python 2.6, 2.7, 3.2, 3.3 and 3.4. Wagtail's dependencies are summarised at `requirements.io <https://requires.io/github/torchbox/wagtail/requirements>`_. Contributing ~~~~~~~~~~~~ If you're a Python or Django developer, fork the repo and get stuck in! We suggest you start by checking the `Help develop me! <https://github.com/torchbox/wagtail/issues?labels=Help+develop+me%21>`_ label and the `coding guidelines <http://wagtail.readthedocs.org/en/latest/howto/contributing.html#coding-guidelines>`_. Send us a useful pull request and we'll post you a `t-shirt <https://twitter.com/WagtailCMS/status/432166799464210432/photo/1>`_. We also welcome `translations <http://wagtail.readthedocs.org/en/latest/howto/contributing.html#translations>`_ for Wagtail's interface.