Karl Hobley
0bcf5a951e
Factor out repeated code
2017-10-25 15:10:40 +01:00
Karl Hobley
688b025187
Implement tweaks suggested by @BertrandBordage
2017-10-25 15:10:40 +01:00
Karl Hobley
ca1ebc7a1e
Added tests that retrieve more than 100 results from Elasticsearch
2017-10-25 15:10:40 +01:00
Karl Hobley
dea74450ca
Clear the scroll when we are done with it
2017-10-25 15:10:40 +01:00
Karl Hobley
d794a52ff8
Don't use scroll API when less than 100 items are requested
2017-10-25 15:10:40 +01:00
Karl Hobley
7199bbae47
Fetch search results with scroll API
...
This allows Wagtail to load in many search results for a single search
query. It also fixes the behaviour when the limit is not set (currently
automatically limits to 10 results but now will return all results).
2017-10-25 15:10:40 +01:00
Karl Hobley
328e337395
Changelog and release notes for #3940 and #3968
2017-10-25 11:56:39 +01:00
Bertrand Bordage
3b585665c9
Merge pull request #3968 from timheap/patch-1
...
Fix using modeladmin_register as a decorator
2017-10-25 11:28:16 +02:00
Tim Heap
83c0ef42da
Fix using modeladmin_register as a decorator
...
Using `modeladmin_register` as a decorator worked, and the ModelAdmin subclass was registered successfully, but as `modeladmin_register` did not return the ModelAdmin subclass, the decorated class would be `None`. Returning the class prevents this issue, so `modeladmin_register` will now work as expected as a decorator.
2017-10-25 09:55:54 +11:00
Matt Westcott
9ec8daba43
Update slugurl
documentation with a "real-world" example.
...
Thanks to @rifuso for the suggestion!
2017-10-23 12:40:07 +01:00
Mads Jensen
543d09fa15
Removed empty super().__init__ constructs.
2017-10-23 10:12:12 +01:00
Bertrand Bordage
4e6f5cd878
Merge pull request #3939 from kaedroho/search-tests
...
Rewrite search tests
2017-10-20 16:49:53 +02:00
Karl Hobley
c0dc85d86a
Remove unused imports
2017-10-20 15:44:10 +01:00
Karl Hobley
c7d37043ca
Deduplicate Elasticsearch index rebuilder tests
2017-10-20 14:44:16 +01:00
Karl Hobley
ea585cb5a3
Use lists instead of sets in search tests
...
And a few other tweaks
2017-10-20 12:56:35 +01:00
Karl Hobley
c60bdbb8c7
Override test_search_all for Elasticsearch
2017-10-20 12:55:33 +01:00
Karl Hobley
a577595779
Fix spelling of consistent
2017-10-20 12:32:52 +01:00
Karl Hobley
d70e2ad4fc
Mark test_filter_isnull_true as expectedFailure on ES5
2017-10-20 10:25:58 +01:00
Bertrand Bordage
0f5640b212
Fixes INDEX_SETTINGS
docs.
2017-10-19 23:11:40 +01:00
Karl Hobley
8cf2c14619
Update test_single_result to use custom ordering
...
For consistency with other slicing tests
2017-10-19 16:58:13 +01:00
Karl Hobley
ecb52e9271
Enable tests that were fixed by #3940
2017-10-19 16:49:05 +01:00
Karl Hobley
3b26706957
Merge branch 'master' into search-tests
2017-10-19 16:29:20 +01:00
Karl Hobley
6514650aa4
Merge pull request #3940 from BertrandBordage/postgres_search_improvements
...
Postgres_search simplification.
2017-10-19 16:27:48 +01:00
Karl Hobley
73ffbc0d17
{} => set()
2017-10-19 16:22:37 +01:00
Karl Hobley
085f1e1678
Reorder character names alphabetically
2017-10-19 16:22:37 +01:00
Karl Hobley
26ebee4733
Fix lint errors
2017-10-19 16:22:37 +01:00
Karl Hobley
8c99ff2385
Update postgres search tests
2017-10-19 16:22:37 +01:00
Bertrand Bordage
52fd56e5e7
Use class_is_indexed
.
2017-10-19 15:40:26 +01:00
Bertrand Bordage
bfbc7adcab
Defines the GIN search index in the models.
2017-10-19 15:17:40 +01:00
Bertrand Bordage
74aaa91ef6
Moves PostgreSQL get_config
to the search backend.
2017-10-19 15:02:09 +01:00
Karl Hobley
f52c8c4433
Rewrite Elasticsearch specific tests
2017-10-19 14:13:17 +01:00
Karl Hobley
6a52ae0494
Rewrite backend tests
2017-10-19 14:13:17 +01:00
Karl Hobley
208ca70b1f
Run Elasticsearch tests with one shard
2017-10-19 14:13:17 +01:00
Karl Hobley
d067239dfe
Update other tests
2017-10-19 14:13:17 +01:00
Karl Hobley
fc9708a2af
Update Elasticsearch tests
2017-10-19 14:13:17 +01:00
Karl Hobley
fe1953a70c
Replace search test models
2017-10-19 14:13:17 +01:00
Bertrand Bordage
781263d4e1
Optimizes the PostgreSQL search query generated by the ORM.
...
Makes queries at least as fast as before.
2017-10-19 11:44:43 +01:00
Matt Westcott
05adf2c85d
recompile .mo files
2017-10-19 11:04:52 +01:00
Kees Hink
c03f43a70b
Also show link to image usage page on confirm_delete page
2017-10-19 10:23:36 +01:00
Bertrand Bordage
77dfab5968
Removes a newline.
2017-10-18 22:21:32 +01:00
Bertrand Bordage
42c38a6af0
Adds back default primary key ordering.
2017-10-18 22:06:57 +01:00
Bertrand Bordage
d19934512d
Only rank specific field search when order_by_relevance
.
2017-10-18 21:49:19 +01:00
Bertrand Bordage
5fac10656d
Removes useless code.
2017-10-18 21:21:50 +01:00
Bertrand Bordage
272bfba95d
Fixes a QuerySet.
2017-10-18 21:16:40 +01:00
Bertrand Bordage
9db5b45ec7
Replace every remaining mention of postgresql_psycopg2.
...
PostgreSQL search backend were not running because of this since 67b1ddb665 (diff-c2cc727a5e1fca9050dea34af68aa13c)
2017-10-18 21:10:49 +01:00
Bertrand Bordage
780d06215e
Fixes fetching results from a queryset directly.
2017-10-18 20:54:46 +01:00
Karl Hobley
522a6868af
Delete backend tests
2017-10-18 16:28:42 +01:00
Bertrand Bordage
f16e8d14b8
Isort fixes.
2017-10-18 16:28:26 +01:00
Bertrand Bordage
f17ac6cedf
Postgres_search simplification.
...
This also preserves the original queryset order when using
`order_by_relevance=False`.
2017-10-18 16:03:33 +01:00
Matt Westcott
fd9d36d66b
Mark 1.13 as no longer in development
...
Conflicts:
CHANGELOG.txt
2017-10-16 19:03:47 +01:00