Skip to content

Commit

Permalink
Fix Result History (#304)
Browse files Browse the repository at this point in the history
* replace term with match query

* bump version, update deps
  • Loading branch information
willronchetti committed Jun 26, 2020
1 parent a13ef6f commit 11c9ff3
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 49 deletions.
3 changes: 2 additions & 1 deletion chalicelib/es_connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,8 @@ def get_result_history(self, prefix, start, limit):
{'term': {'_id': prefix + '/latest.json'}}
],
'filter': {
'term': {'name': prefix}
# use MATCH so our 'prefix' is analyzed like the source field 'name', see mapping
'match': {'name': prefix}
}
}
}
Expand Down
97 changes: 51 additions & 46 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[tool.poetry]
name = "foursight"
version = "0.11.6"
version = "0.11.7"
description = "Serverless Chalice Application for Monitoring"
authors = ["4DN Team <william_ronchetti@hms.harvard.edu>"]
authors = ["4DN-DCIC Team <support@4dnucleome.org>"]
license = "MIT"
packages = [
{ include = "chalicelib" }
Expand Down

0 comments on commit 11c9ff3

Please sign in to comment.