def topic(self): valid_params = [ 'alt', 'mm', 'pf', 'ps', 'qs', 'tie', 'bq', 'bf' ] for v in valid_params: kwargs = {v: 'a'} q = DisMax('title^2 body^1', **kwargs) yield (v, q.get_params())
def topic(self): q = DisMax('title^2 body^1') return q.get_params()
def topic(self): q = DisMax('title^2 body^1', edismax=False) return q.get_params()