Skip to content

Add support for facet filters #24

merged 3 commits into from Nov 13, 2013

3 participants


This patch allows facet filters to be used in facets, by adding a facet_filter object to an entry in the facets array. This is slightly different to how facet filters are defined in raw elasticsearch json, but it preserves backward-compatibility.


  facets: [
      'field': 'document',
      'facet_filter': {
        'and': [
          {'not': {'exists': {'field': 'error.exception'}}},
          {'not': {'term': {'duplicate': true}}}
      'display': 'Documents'
Open Knowledge member
rgrp commented Nov 13, 2013

@markmacgillivray could this be merged?

@markmacgillivray markmacgillivray merged commit 4014eef into okfn:master Nov 13, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.