Skip to content

0.16-2018-09-10

Choose a tag to compare

@barseghyanartur barseghyanartur released this 10 Sep 19:00
· 350 commits to master since this release

.. note:

This release contains minor backwards incompatible changes. You might
need to update your code if you have been making use of nested search.

Old way of declaring nested search fields

.. code-block:: python

search_nested_fields = {
    'country': ['name'],
    'country.city': ['name'],
}

New way of declaring nested search fields

.. code-block:: python

search_nested_fields = {
    'country': {
        'path': 'country',
        'fields': ['name'],
    },
    'city': {
        'path': 'country.city',
        'fields': ['name'],
    },
}
  • Changes in nested search. This affects usage of both historical
    SearchFilterBackend and CompoundSearchFilterBackend. Update your code
    accordingly.
  • Take meta property using of the document Meta into consideration.