-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search and Install do not return the same results #1523
Comments
It looks like searches sent to a REST source look in specific fields when a search is ran for The body of the request for
And the body of the request for
Either there's something weird about the Store source's search where nothing happens if there's not a field set, or (more likely based on my mild knowledge) the use of |
The store source is approximating the REST API calls. We've got another change to hopefully bring the results of search and install to a more consistent state. |
@Masamune3210 The ID could be case-sensitive. You wrote |
msstore is definitely causing issues here - you don't even get the same (incorrect) results between runs
|
If this is causing too many issues for you run Here's some more info: #1515 (comment) |
I've covered a few tips in the blog for Windows Package Manager 1.1. |
I actually think "search" and "install" should not return the same results. On the other hand, |
I feel like there should be a "default" store that is given precedence
I'd go one step further to say that the "default" repository should be user-selectable, and that an exact-match of product id should always work if it's unique, or if it's available in the default repository. If I'm adding custom/additional repositories, I don't expect them to interfere with my "default" behavior. |
Fortunately, this is a back-end change and doesn't require client changes. I thought I'd share this bit of information. |
This didn't make the 10/18 target date. I'm chasing the next date down. |
It looks like 10/25 is the next release window we're targeting. |
Don't mean to bump, but has anything happened on this? |
Thanks for bumping. We're testing in PPE currently, and this will have a staged roll out based on geography. The roll out is scheduled to start on 10/28. |
This change is starting to roll out. It's likely to take a day to completely roll out globally. |
I was just informed the deployment has completed. |
@denelon, why am I still getting this result when I run The other package listed here is completely random, as you can see from the result of IMHO this issue is not fixed, and should be re-opened. I want to be able to tell my users that they can install my app very simply by typing |
It's not a unique moniker if the word is in 7 different packages. That's like saying Java is unique even though it's in multiple package titles |
@Masamune3210 I beg to differ. We have the option of defining a moniker in the manifest, precisely to act as a shorthand. I publish all of the above packages, and I have given unique monikers to each of the packages in the winget repository. I used to be able to install each of them with these monikers:
So, tell me, what is the moniker definition for in the manifest if it is not intended to act as a shorthand for a package ID? I repeat, monikers should have the highest priority in selecting a package. Tags are for searching. I have no quarrel with the search results. My problem is with the install (and show) results. |
@Jaifroid the store source doesn't support moniker yet. This issue was about getting the "winget install" command to at least match consistently with results from "winget search". We're still working on additional improvements and customizations for behavior with other Issues here at GitHub for the client, and internally with the Microsoft Store source. The moniker is intended to act as a shortcut. With two sources it's a bit more challenging. There is an order of precedence from the ID, Name,, and Moniker in the default "winget" source. We're looking at some additional heuristics to help when we get a result from more than one source. Since a moniker wouldn't be unique across multiple sources, we're looking to extend the behavior a bit further with preferences on source priority as well. |
@denelon, that would be very helpful. In the case of |
Brief description of your issue
Steps to reproduce
run
winget search wireshark
run
winget install wireshark
Expected behavior
If only one package is returned from search, only one package should be returned for install. Search and install should return the same available packages
Actual behavior
Environment
The text was updated successfully, but these errors were encountered: