Skip to content

Commit

Permalink
Minor tweaks to ES and Solr regression scripts (#1672)
Browse files Browse the repository at this point in the history
  • Loading branch information
lintool authored Nov 1, 2021
1 parent 48af9ef commit cb0c44c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/main/python/run_es_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def evaluate(self, collection):
elif collection == 'msmarco-passage':
expected = 0.1956
elif collection == 'core18':
expected = 0.2495
expected = 0.2496
elif collection == 'msmarco-doc':
expected = 0.2308
else:
Expand Down Expand Up @@ -250,7 +250,7 @@ def evaluate(self, collection):
es.insert_docs(args.regression, args.input)
# Documents ingested into ES are not immediately searchable. There are lots of 'refresh' options
# to control the visibility behavior, but the simplest solution is just to wait for a bit...
logger.info('Document ingestion complete. Sleeping now for 60s...')
time.sleep(60)
logger.info('Document ingestion complete. Sleeping now for 120s...')
time.sleep(120)
logger.info('Waking up!')
es.evaluate(args.regression)
es.evaluate(args.regression)
2 changes: 1 addition & 1 deletion src/main/python/run_solr_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ def evaluate(self, collection):
ap = float(output[0].split('\t')[2])

if collection == 'core18':
expected = 0.2495
expected = 0.2496
elif collection == 'robust04':
expected = 0.2531
elif collection == 'msmarco-passage':
Expand Down

0 comments on commit cb0c44c

Please sign in to comment.