Closed nikhiltri closed 5 years ago
We recently sent this same query with some minor tweaks to another developer. Make the same changes to the query in this app:
let timeStamp = Math.floor(Date.now() / 1000); let artworkRequest = { "resources": "artworks", "fields": [ "id", "title", "artist_display", "image_id", "date_display" ], "boost": false, "limit": 1, "query": { "function_score": { "query": { "constant_score" : { "filter": { "exists": { "field": "image_id" } } } }, "boost_mode": "replace", "random_score": { "field": "id", "seed": timeStamp } } } };
We recently sent this same query with some minor tweaks to another developer. Make the same changes to the query in this app: