winget-run / api

winget.run rest api
46 stars 4 forks source link

SearchScore sort should not be allowed when no query/non-query fields are set #72

Closed Dragon1320 closed 4 years ago

Dragon1320 commented 4 years ago

There's no actual search being carried out in that case so we can't sort by SearchScore, can lead to undefined behaviour or lower performance.

Dragon1320 commented 4 years ago

Also noticed that the return type on the searchPackages fn doesnt contain the SearchScore field.