Commit graph

2553 commits

Author SHA1 Message Date
Karl Hobley
00347ff6ba Rearrange static site generation docs 2014-07-03 12:53:11 +01:00
Karl Hobley
b9d3e44ebf Use get_indexed_objects to speed up indexing of Images/Documents
Previously, this created a query for every single image and document to get the tags. This was very slow on RCA which has over 15000 images.
This commit fixes this by adding a prefetch_related to the QuerySet used for indexing.
2014-07-03 12:45:31 +01:00
Karl Hobley
9e1bd2d601 Added get_indexed_objects method to Indexed class
This gives developers control over the QuerySet used when the model is added to the indexed
2014-07-03 12:45:31 +01:00
Karl Hobley
b78b648682 Implemented __in lookup in ElasticSearch backend
Also added an error message if a user attempts to use a subquery with the __in lookup.
2014-07-03 12:45:31 +01:00
Karl Hobley
e35e20dd10 Added search method to PageQuerySet 2014-07-03 12:45:31 +01:00
Karl Hobley
08ced063ff Moved search method into base search backend 2014-07-03 12:45:30 +01:00
Karl Hobley
001fcabb46 Fixed python 3.2 incompatible migration 2014-07-03 12:44:53 +01:00
Matt Westcott
f28e43f02f Merge branch 'master' of github.com:torchbox/wagtail 2014-07-03 12:36:15 +01:00
Matt Westcott
e509871624 Merge branch 'kaedroho-page-duplication' 2014-07-03 12:35:57 +01:00
Matt Westcott
27e935db68 Merge branch 'page-duplication' of https://github.com/kaedroho/wagtail into kaedroho-page-duplication
Conflicts:
	wagtail/wagtailcore/tests/test_page_model.py
2014-07-03 12:35:43 +01:00
Karl Hobley
63e5ca34ce Make sure field filters are sorted before checking them 2014-07-03 12:31:18 +01:00
Neal Todd
2f126bda6e Update index.rst 2014-07-03 12:26:48 +01:00
Tom Talbot
cd14be23c3 Tweak FieldPanel tests 2014-07-03 12:22:44 +01:00
Matt Westcott
45621aa48e Merge branch 'kaedroho-python3-take2-unicode-literals' 2014-07-03 12:15:50 +01:00
Matt Westcott
9938ecf960 add py32-dj16-sqlite to the list of tox environments that fail due to iteritems in South 2014-07-03 12:11:34 +01:00
Karl Hobley
04c507e37b Added tests for indexed class 2014-07-03 12:05:24 +01:00
Karl Hobley
f02a6937d2 Added more tests for ElasticSearch backend 2014-07-03 12:05:24 +01:00
Karl Hobley
2679dc2fe6 Split up backend tests 2014-07-03 12:04:47 +01:00
Karl Hobley
2100c6372d Moved wagtailsearch test models into wagtail.tests models 2014-07-03 12:04:02 +01:00
Karl Hobley
8a99a63cf1 Fixed typo 2014-07-03 12:01:17 +01:00
Karl Hobley
156eb89850 Changed default values of filters and prefetch_related to None 2014-07-03 12:01:17 +01:00
Karl Hobley
d872768baf Allow query_string to be set to None
This allows match_all queries to be created
2014-07-03 12:01:17 +01:00
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