diff --git a/CHANGELOG.txt b/CHANGELOG.txt index ab57b9042..c0d90f46e 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -15,6 +15,7 @@ Changelog * 'boost' applied to the title field on searches reduced from 100 to 2 * Fix: 'wagtail start' command now works on Windows * Fix: The external image URL generator no longer stores generated images in Django's cache + * Fix: Elasticsearch backend can now search querysets that have been filtered with an 'in' clause of a non-list type (such as a ValuesListQuerySet) 0.6 (11.09.2014) ~~~~~~~~~~~~~~~~ diff --git a/docs/releases/0.7.rst b/docs/releases/0.7.rst index 061f6d45c..b07531f96 100644 --- a/docs/releases/0.7.rst +++ b/docs/releases/0.7.rst @@ -37,6 +37,7 @@ Bug fixes * The 'wagtail start' command now works on Windows and other environments where the ``django-admin.py`` executable is not readily accessible. * The external image URL generator no longer stores generated images in Django's cache; this was an unintentional side-effect of setting cache control headers. + * The Elasticsearch backend can now search querysets that have been filtered with an 'in' clause of a non-list type (such as a ``ValuesListQuerySet``). Upgrade considerations diff --git a/wagtail/wagtailsearch/backends/elasticsearch.py b/wagtail/wagtailsearch/backends/elasticsearch.py index ae2a07822..a76fe69b6 100644 --- a/wagtail/wagtailsearch/backends/elasticsearch.py +++ b/wagtail/wagtailsearch/backends/elasticsearch.py @@ -206,7 +206,7 @@ class ElasticSearchQuery(object): if lookup == 'in': return { 'terms': { - field_index_name: value, + field_index_name: list(value), } }