0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-12-01 11:41:20 +01:00
Commit Graph

8617 Commits

Author SHA1 Message Date
Karl Hobley
4b91f6f6dc Implement custom ordering in page search 2018-07-27 11:45:11 +01:00
Karl Hobley
ce2bdb9644 Implement filter by content type on page search 2018-07-27 11:45:10 +01:00
Matt Westcott
bb8df218e5 Make checkbox/radio alignment on Firefox consistent with Webkit 2018-07-25 11:26:15 +01:00
Karl Hobley
3d4055e465 Always index the specific version of the book 2018-07-23 13:45:59 +01:00
Karl Hobley
bf2661c952 Support indexing ForeignKeys which point to models with custom PK type 2018-07-23 13:45:59 +01:00
Karl Hobley
f67f0e39c3 Allow indexing arrays of model instances in FilterField 2018-07-23 13:45:59 +01:00
Karl Hobley
a68597dadf Add "missing value" bucket to Elasticsearch facet
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-terms-aggregation.html#_missing_value_12
2018-07-23 13:45:59 +01:00
Karl Hobley
5c0c91dce7 Index tag IDs when indexing tags fields 2018-07-23 13:45:59 +01:00
Karl Hobley
dd9f155c06 Find underlying type of related fields
We currently guess that all OneToOneFields are integers and use string
for everything else.

This is usually not an issue as Elasticsearch coerces between strings an
integers automatically. But this causes issues for the new facet feature
as Elasticsearch returns strings for ID fields that are actually
integers.

The field type changes shouldn't cause any trouble for existing indices
as Elasticsearch will continue to automatically coerce the types. Users
who want to use the new facet feature on related fields will have to
rebuild their index.
2018-07-23 13:45:59 +01:00
Karl Hobley
dca01c3f4d Reindex books when adding tags 2018-07-23 13:45:59 +01:00
Bertrand Bordage
0161f2664b Merge branch 'master' of github.com:wagtail/wagtail 2018-07-14 14:56:24 +02:00
Bertrand Bordage
aa5f2497ea Changelog for PostgreSQL autocomplete. 2018-07-14 14:54:48 +02:00
Bertrand Bordage
1130209823 Builds a single tsquery to handle complex negations. 2018-07-14 14:54:23 +02:00
Bertrand Bordage
f0d25f7443 Tests negating the search of multiple words (should fail on PostgreSQL). 2018-07-14 14:52:35 +02:00
Meteor0id
d49bc21469 one letter spelling mistake
Had been merged by the time I noticed my own mistake. Corrected 1 letter.
2018-07-14 13:29:37 +02:00
Meteor0id
ddd63bdb59 Update integrating_into_django.rst (#4686)
* Update integrating_into_django.rst

flaw in url, was still referencing depreciated method, fixed.

* Update integrating_into_django.rst

Add important notice that versions of Django earlier than 2.0 require url() instead of re_path()
2018-07-13 20:58:21 +02:00
Bertrand Bordage
8f4e5278de Makes PostgreSQL autocomplete work with tsquery special chars. 2018-07-13 20:38:38 +02:00
Bertrand Bordage
a0283a9d8f Implements query boost in PostgreSQL. 2018-07-13 20:22:23 +02:00
Bertrand Bordage
53c0e3aab7 Flake8. 2018-07-13 15:36:05 +02:00
Bertrand Bordage
cf2c9f5af4 Adds PostgreSQL support for the autocomplete method. 2018-07-13 15:11:39 +02:00
Karl Hobley
f75d2c49bf Fix autocomplete API for Elasticsearch 6 2018-07-13 14:15:44 +02:00
Karl Hobley
5f1b473020 Simplify combinator query definitions
Happy to accept a little bit of repeated code here
2018-07-13 09:47:29 +01:00
Karl Hobley
c12bfbbc55 Remove unneeded methods on query classes 2018-07-13 09:47:29 +01:00
Karl Hobley
633aae46d4 Remove call to get_children() from Elasticsearch 2018-07-13 09:47:29 +01:00
Karl Hobley
d74cdb9a78
Merge pull request #4682 from gasman/admin/reapply-4593
Reapply #4593 (Update search query classes for RFC 25)
2018-07-12 16:51:51 +01:00
Bertrand Bordage
a3fe8eb3b1 Improves sitemap to avoid passing site now that request is used. 2018-07-11 20:17:48 +02:00
Karl Hobley
bd4729144e Minor python optimisation 2018-07-11 18:28:14 +01:00
Karl Hobley
0b85b3a4eb Reorder query classes 2018-07-11 18:28:14 +01:00
Karl Hobley
7f15bc500b Reorder tests 2018-07-11 18:28:14 +01:00
Karl Hobley
939a678d99 Remove term level query classes 2018-07-11 18:28:14 +01:00
Karl Hobley
37f2b77e81 Remove shortcut queries 2018-07-11 18:24:59 +01:00
Karl Hobley
03ccd2e55d Rewrite Boost to no longer be a shortcut 2018-07-11 18:24:59 +01:00
Karl Hobley
0ab6f096cd Fix typo in Elasticsearch backend
Caused crash when PlainText was used in a combinator query
2018-07-11 18:20:56 +01:00
Karl Hobley
fc416f2fc3 Rewrite PlainText to no longer be a shortcut 2018-07-11 18:20:56 +01:00
Karl Hobley
a1c96ac23b Remove Filter query class 2018-07-11 18:20:56 +01:00
Bertrand Bordage
88d5a8cfee Release notes for #4575. 2018-07-11 18:25:09 +02:00
Karl Hobley
90cc9c54ba Added AutocompleteField & autocomplete().
Squashes these commits:

Added AutocompleteField

Implemented AutocompleteField for Elasticsearch

Add autocomplete() method to search backends

Implement autocomplete API for Elasticsearch

Allow partial match to be disabled on search()

Refactor search/autocomplete methods on base search backend
2018-07-11 18:22:37 +02:00
Matt Westcott
1d517dd0d8 Mark test_facet_tags as expected failure on Elasticsearch 2018-07-11 15:11:45 +01:00
Matt Westcott
a507cb9114 Revert "Update search query classes for RFC 25" 2018-07-11 13:48:40 +01:00
Matt Westcott
f719ce1a82 Add note about not asking support questions in multiple places 2018-07-11 11:09:45 +01:00
Michael van Tellingen
bad95cf37c Optimize the querycount for the sitemap.xml page
By optionally passing the request object to Page.get_sitemap_urls() it
will now use the cached site root on the request object instead of
retrieving it for each call. This cuts the number of queries required
for a sitemap roughly in half.
2018-07-10 16:53:19 +01:00
Pomax
40981b0c65 replace my name with my name
I do not write code under my passport name, if I have to be in a changelog, please use "Pomax" =)
2018-07-10 11:20:28 +01:00
Thibaud Colas
2d9440f79c
Add release notes for #4582 (#4676) 2018-07-10 00:31:57 +03:00
kevin howbrook
cfcad4059b Update editor guide for embeds and documents in rich text, fix #4558 (#4632) 2018-07-09 10:07:03 +03:00
Matt Westcott
e53076d949 Release note for #4669 2018-07-06 17:01:43 +01:00
Abdulmalik Abdulwahab
23052e636e show revision unschedule button to only users with permission 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
3e1511d362 add can_unschedule to PagePermissionTester 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
254092e595 Change the user permission check on revisions unschedule to can_publish 2018-07-06 16:58:40 +01:00
Abdulmalik Abdulwahab
e616d11bdc Failing test for unschedule for unpublished pages 2018-07-06 16:58:39 +01:00
Karl Hobley
c22321ee75
Merge pull request #4593 from kaedroho/update-search-query-classes
Update search query classes for RFC 25
2018-07-05 17:15:11 +01:00