Add ExactMatch flag to packages API #33544
Labels
topic/packages
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
Milestone
Feature Description
Currently the API for
/packages/{owner}
localhost:3000/api/swagger/package/listPackages
(Gets all packages of an owner)
is defined with the following parameters:
page
numberlimit
itemstype
of packageq
name filterThe problem is, that the name filter is treated with the LIKE operator. There is no way to do an exact name search.
-> Please add a flag to do an exact name search.
Background:
Our repository is very, very big with lots of nuget packages (100k packages and counting) that share parts of the same name, like a base package
package.name.part
and lots of specialized packages likepackage.name.part.subA
,package.name.part.subB
, ...there is no way to filter for
package.name.part
, as it will always include all other packages aswell. This makes it impossible to do a performant lookup of what is present in the registry. Or is there?Currently I query the whole registry which takes about 5 minutes to finish using
package/listPackages
with not q filter and do the grouping in code.Earlier I used the nuget api directly, but it is much slower than
listPackages
.-> It would be nice to have an API where the latest version of each package could be fetched, and then an API to get all versions of an package.
Screenshots
No response
The text was updated successfully, but these errors were encountered: