Skip to content

Commit

Permalink
add NotFilter as facet filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomas Sirny authored and Alberto Paro committed Mar 8, 2012
1 parent 13b8968 commit ca4cb9e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pyes/facets.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
__author__ = 'Alberto Paro'

from utils import EqualityComparableUsingAttributeDictionary
from filters import Filter, TermFilter, TermsFilter, ANDFilter
from filters import Filter, TermFilter, TermsFilter, ANDFilter, NotFilter

#--- Facet
class FacetFactory(EqualityComparableUsingAttributeDictionary):
Expand Down Expand Up @@ -361,6 +361,10 @@ class ANDFacetFilter(ANDFilter, FacetFilter):
pass


class NotFacetFilter(NotFilter, FacetFilter):
pass


class FacetQueryWrap(EqualityComparableUsingAttributeDictionary):
def __init__(self, wrap_object, **kwargs):
"""
Expand Down

0 comments on commit ca4cb9e

Please sign in to comment.