Closed antolinos closed 2 years ago
@antolinos : thank you for submitting the issue. I do confirm that is an issue and I was able to reproduce it on our own deployment. I'm going to do some debugging and figure out where is the bug.
@antolinos
Mistery solved. The correct syntax is with itemIds
and not with itemsId
.
url = "http://test-server:9000/score"
try:
myobj = {
"itemIds": ["13411761", "20061268"],
"query": "diffraction"
}
response = requests.post(url, json=myobj, timeout=5)
if response.status_code < 400:
scores = response.json()["scores"]
print(len(scores))
I will check the documentation to make sure that is correct.
Closing this issue for inactivity. Tested multiple times and documentation is fixed
Following the documentation the endpoint
/score
should filter the items by itemsId.However, it does not seem to be the case and gets ignored returning an arbitrary number of items.
Example:
prints: