@@ -305,7 +305,7 @@ def test_search(get_testing_ds_client, query):
305
305
res_hits [0 ]["_source" ]["text" ]
306
306
== "This document is a bad test, I don't want to retrieve it"
307
307
)
308
- assert res_hits [0 ]["_score" ] == pytest .approx (0.7782316 )
308
+ assert res_hits [0 ]["_score" ] == pytest .approx (0.81427324 )
309
309
# test query + aggs.
310
310
results = ds_client .search (index_doc , query , aggs = aggs )
311
311
assert results ["aggregations" ]["unique_ids" ]["buckets" ][0 ]["doc_count" ] == 1
@@ -376,13 +376,13 @@ def test_bm25_search(get_testing_ds_client, filter_db):
376
376
if filter_db is None :
377
377
assert len (res ) == 2
378
378
assert res [0 ]["text" ] == "test of an amazing function"
379
- assert res [0 ]["score" ] == pytest .approx (0.5403367 )
379
+ assert res [0 ]["score" ] == pytest .approx (0.5504225 )
380
380
else :
381
381
assert len (res ) == 1
382
382
assert (
383
383
res [0 ]["text" ] == "This document is a bad test, I don't want to retrieve it"
384
384
)
385
- assert res [0 ]["score" ] == pytest .approx (0.37292093 )
385
+ assert res [0 ]["score" ] == pytest .approx (0.39019167 )
386
386
387
387
# Errors
388
388
with pytest .raises (RuntimeError ):
@@ -647,7 +647,7 @@ async def test_asearch(get_testing_async_ds_client, query):
647
647
res_hits [0 ]["_source" ]["text" ]
648
648
== "This document is a bad test, I don't want to retrieve it"
649
649
)
650
- assert res_hits [0 ]["_score" ] == pytest .approx (0.7782316 )
650
+ assert res_hits [0 ]["_score" ] == pytest .approx (0.81427324 )
651
651
# test query + aggs.
652
652
results = await ds_client .search (index_doc , query , aggs = aggs )
653
653
assert results ["aggregations" ]["unique_ids" ]["buckets" ][0 ]["doc_count" ] == 1
@@ -722,13 +722,13 @@ async def test_abm25_search(get_testing_async_ds_client, filter_db):
722
722
if filter_db is None :
723
723
assert len (res ) == 2
724
724
assert res [0 ]["text" ] == "test of an amazing function"
725
- assert res [0 ]["score" ] == pytest .approx (0.5403367 )
725
+ assert res [0 ]["score" ] == pytest .approx (0.5504225 )
726
726
else :
727
727
assert len (res ) == 1
728
728
assert (
729
729
res [0 ]["text" ] == "This document is a bad test, I don't want to retrieve it"
730
730
)
731
- assert res [0 ]["score" ] == pytest .approx (0.37292093 )
731
+ assert res [0 ]["score" ] == pytest .approx (0.39019167 )
732
732
733
733
734
734
@pytest .mark .parametrize (
0 commit comments