We noticed today that the freesound search we integrated in our app suddenly always returns the same items, no matter what search term we use.
Below is the JS code we use to search.
It seems to be related to the tag filter, because if I remove it, the search results change with the query. However, the search query as we have it worked fine up until at least December 13 (we have tests for it in our CI pipeline that still passed on that day). We haven't touched that code for a couple of months.
const FreeSound = require('freesound-client').default;
const freeSound = new FreeSound();
freeSound.setToken(<API_TOKEN>);
const { searchTerm } = event.arguments;
const response = await freeSound.textSearch('', {
page: 1,
filter: `duration:[1.0 TO 15.0]AND(license:"Creative Commons 0")AND(original_filename:(*${searchTerm}*))OR(tag:(*${searchTerm}*))`,
sort: 'rating_desc',
fields: 'id,duration,name,license,previews,type,tags',
});
console.log(JSON.stringify(response));