0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-29 17:36:49 +01:00
wagtail/docs/advanced_topics
Karl Hobley daa82936d7 Elasticsearch 2 support (#2573)
* Created Elasticsearch 2 backend

* Added tests for Elasticsearch 2 backend

* Split models up into different indices

pages, images and documents are now in separate indices

* Prefix fields of child models to prevent mapping clashes

* Replaced index_analyzer with analyzer/search_analyzer

index_analyzer has been removed in Elasticsearch 2.0

https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html#_analyzer_mappings

There's no indication in Elasticsearch's docs that this wouldn't work on Elasticsearch 1.x. However, we found that the new configuration isn't reliable on Elasticsearch 1.6 and below (causes the test_query_analyzer test to fail randomly).

* Implemented new way of representing content types in search index

Instead of using a long string of model names that is queried using a
"prefix" query, we instead use a multi-value string field and query it
using a simple "match" query.

The only reason why this isn't implemented in the Elasticsearch 1.x
backend yet is backwards compatibility

* Added another child model of SearchTest with clashing field mapping

This checks that the namespacing of fields on child models is working properly (if it doesn't the update_index tests will fail)

* Added tests for get_model_root function

* fixup! Added tests for get_model_root function

* Docs updates for Elasticsearch 2 support

Also tweak examples to use elasticsearch2 backend by default

* Test against Elasticsearch 2 on travis
2016-08-31 13:46:57 +03:00
..
customisation Update branding docs to remove django-overextends 2016-05-31 10:34:26 +01:00
i18n Renamed "self" template variable to "page" in docs 2015-10-13 09:52:16 +01:00
images Remove deprecated wagtail.wagtailimages.utils module 2016-08-09 20:11:31 +01:00
deploying.rst Added openshift deployment infos using wagtail-openshift-quickstart 2016-04-06 11:44:25 +01:00
index.rst Moved advanced image topics into advanced topics 2016-01-27 11:27:16 +00:00
jinja2.rst Tweak wording for include_block tag documentation 2016-07-27 17:04:19 +01:00
performance.rst add a sendfile class based view implementation 2016-05-17 16:34:32 +01:00
privacy.rst Changed indentation on all code samples to 4 spaces. 2016-04-28 10:57:22 +01:00
settings.rst Elasticsearch 2 support (#2573) 2016-08-31 13:46:57 +03:00
testing.rst Add docs for WagtailPageTests 2015-12-15 15:49:40 +00:00
third_party_tutorials.rst Add another tutorial (#2894) 2016-08-05 11:20:55 +03:00