Skip to content
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

Update searching-for-and-choosing-packages-to-download.mdx #1453

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

monishcm
Copy link
Contributor

  • Add details to search docs intro to brief about when a new package will show up in search result.
  • Split provenance information to a separate documentation.

@@ -19,61 +19,3 @@ You can use the npm search bar to find packages to use in your projects. The sea
<Screenshot src="/packages-and-modules/getting-packages-from-the-registry/search-sort-options.png" alt="Screenshot of the search Sort by dropdown featuring sorting options" />

3. In the package search results list, click the name of the package.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my concern here is that we don't have any redirect and there might be existing links today pointing out to this page. If you want to split the pages, you might keep the subtitle as is (Package provenance) and add a note the subsection moved to a new page.

@@ -4,7 +4,7 @@ redirect_from:
- /getting-started/searching-for-packages
---

You can use the npm search bar to find packages to use in your projects. The search is performed using content from the package's title, description, readme, and keywords and is powered by [opensearch](https://opensearch.org/). Search results are displayed based on keyword matching from the package's title, description, readme, and keywords. No subjective ranking criteria are applied, except for a minimal boost to deprioritize spammy or entirely new packages, aiming to maintain a neutral stance towards all other packages.
You can use the npm search bar to locate packages for your projects. The search function leverages information from a package's title, description, readme, and keywords, powered by OpenSearch. Results are displayed based on keyword matching from these fields, without subjective ranking criteria. However, adjustments are applied to deprioritise spammy or recently published packages to ensure search neutrality. Please note that newly published packages may take up to one-two week to appear in the search results. Additionally, deprecated packages are excluded from the search results to enhance the user experience.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original idea is appending this paragraph mentioning how long it takes for packages to show up in the search results. I'd keep the modification simplified with the intent. E.g.:

Suggested change
You can use the npm search bar to locate packages for your projects. The search function leverages information from a package's title, description, readme, and keywords, powered by OpenSearch. Results are displayed based on keyword matching from these fields, without subjective ranking criteria. However, adjustments are applied to deprioritise spammy or recently published packages to ensure search neutrality. Please note that newly published packages may take up to one-two week to appear in the search results. Additionally, deprecated packages are excluded from the search results to enhance the user experience.
You can use the npm search bar to find packages to use in your projects. The search is performed using content from the package's title, description, readme, and keywords and is powered by [opensearch](https://opensearch.org/). Search results are displayed based on keyword matching from the package's title, description, readme, and keywords. No subjective ranking criteria are applied, except for a minimal boost to deprioritize spammy or entirely new packages, aiming to maintain a neutral stance towards all other packages.
Please note that newly published packages may take up to one-two week to appear in the search results. Additionally, deprecated packages are excluded from the search results to enhance the user experience.

Here I'm just restoring the original paragraph, and adding a second paragraph with the proposed addition. The suggestion diff seems confusing because it is compared to the PR's text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants