@scenario(prepare_data, cleanup_data)
def test_search_with_scoring_and_params(context):
    # When create a query block
    t = QuerySet("localhost", index="foo")

    # And there are records
    add_document("foo", {"bar": 1})
    add_document("foo", {"bar": 2})
    add_document("foo", {"bar": 3})

    # And I add scoring with params
    score = ScriptScore("s = custom_param + doc['bar'].value", params={"custom_param": 1})
    t.score(score)
    results = t[0:10]

    # Then my results are scored correctly
    len(results).should.equal(3)
    results[0]["_source"]["bar"].should.equal(3)
    results[1]["_source"]["bar"].should.equal(2)
    results[2]["_source"]["bar"].should.equal(1)
Resets all flags for a tile, then sets the given flags.
dataset/ETHPy150Open Yipit/pyeqs/tests/functional/test_score.py/test_search_with_scoring_and_params--crossover with--dataset/ETHPy150Open dansanderson/picotool/pico8/gff/gff.py/Gff.reset_flags