0.16-2018-09-10
.. 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
SearchFilterBackendandCompoundSearchFilterBackend. Update your code
accordingly. - Take meta property
usingof the documentMetainto consideration.