Commit graph

1534 commits

Author SHA1 Message Date
Karl Hobley
ca1fa1d933 Index partials together into '_partials' 2014-07-03 11:48:00 +01:00
Karl Hobley
e1721030dc Exclude filter fields from _all. Explicitly include search fields in _all 2014-07-03 11:46:29 +01:00
Karl Hobley
584f5a7049 Index fields with correct type in ElasticSearch
Previously, everything was converted to a string before indexing in ElasticSearch.
This caused issues where certian filters may not work as expected (such as a greater than filter on an integer field)

This commit changes this by adding type conversion into the ElasticSearch backend.
2014-07-03 11:38:06 +01:00
Karl Hobley
673da4ab02 Set index:'not_analysed' setting on content_type field 2014-07-03 11:33:04 +01:00
Karl Hobley
4a70a4251b Give some feedback from the add_bulk command 2014-07-03 11:32:05 +01:00
Karl Hobley
b1fb9dc2e2 Fixed a few more double quotes 2014-07-03 11:32:05 +01:00
Karl Hobley
6847109bb9 Removed 'object_indexed' check from update_index command
Conflicts:
	wagtail/wagtailsearch/management/commands/update_index.py
2014-07-03 11:32:04 +01:00
Karl Hobley
f2d1c80378 Don't run tests with wagtailsearch signal handlers enabled 2014-07-03 11:32:04 +01:00
Karl Hobley
67ed563dd7 Made quotes more consistant 2014-07-03 11:32:04 +01:00
Karl Hobley
6d21727b03 Cleaned up database backend search method 2014-07-03 11:29:33 +01:00
Karl Hobley
5e76a54b2b Remove any duplicate search fields of the same type 2014-07-03 11:29:33 +01:00
Karl Hobley
0aca9ece65 Moved field mapping generation code into ElasticSearchMapping class 2014-07-03 11:27:54 +01:00
Karl Hobley
8bb3703c6e Created get_field_mapping method on ElasticSearchMapping class 2014-07-03 11:26:16 +01:00
Karl Hobley
3c5a065a36 SearchFields configuration is now used in the backends
Previously, we just converted them to make them look like indexed_fields.
We now convert indexed_fields into SearchFields objects and pass them to the backend.
2014-07-03 11:03:19 +01:00
Karl Hobley
e81a9f6c6b Added repr to indexed.BaseField 2014-07-03 11:01:18 +01:00
Karl Hobley
da9b7c2408 Moved document building methods from indexed into ElasticSearchMapping 2014-07-03 10:59:41 +01:00
Karl Hobley
fefa8c79ef Added repr to ElasticSearchMapping 2014-07-03 10:59:41 +01:00
Karl Hobley
5c64172d02 Created ElasticSearchMapping class 2014-07-03 10:59:36 +01:00
Karl Hobley
bba9d4faf2 Added new search configuration format 2014-07-03 10:36:37 +01:00
Karl Hobley
1a3558cabd Added DeprecationWarning to wagtailadmin.hooks 2014-07-03 10:25:26 +01:00
Karl Hobley
6868d30ded Merge pull request #411 from gasman/move_hooks_into_wagtailcore
Move the hooks subsystem into wagtailcore
2014-07-03 10:23:18 +01:00
Karl Hobley
d71342ce44 Merge pull request #415 from davecranwell/master
Addressing issue where ordering of new inlinepanel items created two ite...
2014-07-03 10:19:26 +01:00
Dave Cranwell
09cdc99ff2 Addressing issue where ordering of new inlinepanel items created two items of the same order 2014-07-03 10:14:01 +01:00
Matt Westcott
b45b1d5404 remove a load of unused imports 2014-07-02 21:56:50 +01:00
Matt Westcott
79de8bf884 replace assertRegexpMatches with six.assertRegex to prevent deprecation warnings on python 3 2014-07-02 21:19:29 +01:00
Matt Westcott
352c7ce8f5 replace assertEquals with assertEqual to prevent deprecation warnings on python 3 2014-07-02 21:05:16 +01:00
Matt Westcott
dea5124103 suppress warnings from wagtailembeds tests 2014-07-02 21:02:42 +01:00
Matt Westcott
92dc6add90 update hook examples in docs to import from wagtailcore, not wagtailadmin 2014-07-02 20:04:06 +01:00
Matt Westcott
618dd96a88 update wagtailstyleguide and wagtailcore.rich_text to import hooks from wagtailcore rather than wagtailadmin 2014-07-02 20:02:25 +01:00
Matt Westcott
7a80c8adca Move the 'hooks' module from wagtailadmin to wagtailcore
Conflicts:
	wagtail/tests/wagtail_hooks.py
	wagtail/wagtailadmin/views/pages.py
2014-07-02 19:59:00 +01:00
Tom Dyson
47c83e75b1 Lets -> Let's 2014-07-02 17:57:30 +01:00
Neal Todd
41ff751009 Update index.rst 2014-07-02 17:57:15 +01:00
Karl Hobley
83b133fe17 Merge remote-tracking branch 'torchbox/master' 2014-07-02 17:52:24 +01:00
Karl Hobley
a6637ffc18 Added some missing changelog entries 2014-07-02 17:51:36 +01:00
Tom Dyson
0d5cabd1e7 Two new features in README 2014-07-02 17:50:03 +01:00
Neal Todd
80ea75d244 Bump flake8 to correct latest version. 2014-07-02 17:47:03 +01:00
Karl Hobley
0575a90f54 Merge pull request #364 from kaedroho/varnish-cache-invalidation
Frontend cache invalidation
2014-07-02 17:44:03 +01:00
Karl Hobley
35fd9f4a98 Merge branch 'master' into varnish-cache-invalidation
Conflicts:
	wagtail/wagtailcore/models.py
2014-07-02 17:43:47 +01:00
Neal Todd
c271db4601 Merge pull request #409 from nealtodd/deps-update
Requirements version updates, documenting dependencies via requirements.io and updating supported python version docs.
2014-07-02 17:43:36 +01:00
Karl Hobley
448b50a011 Merge pull request #325 from kaedroho/sitemaps
Sitemap generator
2014-07-02 17:42:13 +01:00
Neal Todd
e31ff7f3c4 Requirements version updates, documenting dependencies via requirements.io and updating supported python version docs. 2014-07-02 17:31:06 +01:00
Karl Hobley
62c59744f9 Merge branch 'master' into varnish-cache-invalidation
Conflicts:
	setup.py
2014-07-02 17:22:19 +01:00
Karl Hobley
ab518b6472 Merge branch 'master' into sitemaps 2014-07-02 17:21:20 +01:00
Matt Westcott
4f92311b37 Merge branch 'kaedroho-python3-take2' 2014-07-02 17:18:15 +01:00
Matt Westcott
442286463f update setup.py with classifiers for Python3.3 and Python3.4 2014-07-02 17:17:25 +01:00
Matt Westcott
ab486a526a update travis config to not accept failures on 3.4 2014-07-02 17:16:19 +01:00
Matt Westcott
38ca434aeb add tox tests for postgres on python3.3 and python3.4 2014-07-02 17:14:34 +01:00
Matt Westcott
66fb8bb2d1 Merge branch 'python3-take2' of https://github.com/kaedroho/wagtail into kaedroho-python3-take2 2014-07-02 15:19:52 +01:00
Karl Hobley
dd1b0ababe Fixed check for user email address 2014-07-02 14:44:40 +01:00
Karl Hobley
e6f47aa403 Take a copy of parents indexed fields before modifying it to prevent indexed fields configuration being changed accidentally 2014-07-02 14:01:08 +01:00