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

PCH Related Posts: Support slugs in search #2968

Open
acicovic opened this issue Nov 22, 2024 · 0 comments
Open

PCH Related Posts: Support slugs in search #2968

acicovic opened this issue Nov 22, 2024 · 0 comments

Comments

@acicovic
Copy link
Collaborator

Is your feature request related to a problem?

A customer reported not getting results by section in PCH Related Posts.

Digging deeper, we found that the customer's metadata is registering sections with the category's slug, not the name field which we currently use to fetch results.

Describe the solution you'd like

There are a few possible solutions:

  1. If possible, query with both name and slug in one call, and show the results. There's a slight possibility of getting some unwanted results.
  2. Perform the name query as usual, and if no results are returned then query for slug. There's a slighter chance of showing unwanted results, but we use 2 calls and latency increases for results by slug and when there are no results at all.
  3. Provide a setting so customers can set whether the query should be made by name or slug. We could also introduce an option to query both if we think it could be useful, especially if it's possible with one call. This solution eliminates the possibility of showing potentially unwanted results, but it's considerably more work for something that isn't currently a widespread need.
@acicovic acicovic added this to the Future Milestone milestone Nov 22, 2024
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

No branches or pull requests

1 participant