My code is:
import pyes
conn = pyes.ES(myes_path)
siplist =['a','b','c']
diplist = ['d','e','f']
bf = pyes.filters.BoolFilter()
bf.add_must(pyes.filters.TermsFilter('sip',siplist))
bf.add_must(pyes.filters.TermsFilter('dip',diplist))
fq = pyes.query.FilteredQuery(pyes.query.MatchAllQuery(),bf)
res = conn.search(fq,'hhhhh')
print res.total
I always get this error:
bits = error.split('[', 1) TypeError: 'NoneType' object is not callable
Does anyone know what is the problem?