Commit graph

2631 commits

Author SHA1 Message Date
Karl Hobley
41199dd576 Minor optimisation in ElasticSearchQuery 2014-07-03 12:01:17 +01:00
Karl Hobley
b15522ac1e Implemented search on queryset 2014-07-03 12:01:05 +01:00
Matt Westcott
d4cfb434d5 Merge branch 'python3-take2-unicode-literals' of https://github.com/kaedroho/wagtail into kaedroho-python3-take2-unicode-literals 2014-07-03 11:51:03 +01:00
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
Tom Talbot
d7f1e317f0 Merge branch 'master' into fix-edit-handlers-test
Conflicts:
	wagtail/wagtailembeds/tests.py
2014-07-03 11:44:45 +01:00
Tom Talbot
de3f852e43 Removed EditHandler tests. Added more FieldPanel tests 2014-07-03 11:41:23 +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
Dave Cranwell
b0ef94a2db Update README.rst 2014-07-03 11:06:43 +01:00
Dave Cranwell
3ab75c0cfe Update README.rst 2014-07-03 11:05:56 +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
Karl Hobley
e4a9756c79 Added little section in the docs describing purge_url_from_cache 2014-07-03 10:14:51 +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
Karl Hobley
1ce157ea43 Added purge_url_from cache to wagtailfontendcache.utils 2014-07-03 09:17:55 +01:00
Karl Hobley
6800869153 Ditto for WagtailAdminModelForm class 2014-07-02 22:37:08 +01:00
Karl Hobley
c743b71a03 Cast edit handler type names to str before passing into type()
On python 2, these need to be bytestrings and on python 3 they need to be unicode. So casting to str is a good fit.
2014-07-02 22:26:30 +01:00
Karl Hobley
81f427d801 Make sure names of edit handler types are bytestrings and not unicode 2014-07-02 22:15:48 +01:00
Karl Hobley
f758808a21 Added python 3.2 to travis settings 2014-07-02 22:02:07 +01:00
Matt Westcott
b45b1d5404 remove a load of unused imports 2014-07-02 21:56:50 +01:00
Karl Hobley
e42029328f Added python 3.2 support to readme 2014-07-02 21:46:37 +01:00
Karl Hobley
9755ece5cc Added python 3.2 to tox settings 2014-07-02 21:45:38 +01:00
Karl Hobley
76b720721a Removed unicode literals for Python 3.2 support 2014-07-02 21:43:15 +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