Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

API: return content match in search results #200

Open
chouseknecht opened this issue Nov 20, 2019 · 3 comments
Open

API: return content match in search results #200

chouseknecht opened this issue Nov 20, 2019 · 3 comments

Comments

@chouseknecht
Copy link
Contributor

The Galaxy API includes a content_match object on each search result item, and the UI is able to show the user what content matched the user query. For example, 3 plugin might match the search keyword because it was found in the plugin name or description. Mirror this in AH. Re-think the design a bit, as the current Galaxy search display has created some confusion.

@bmbouter
Copy link

@cutwater where can I see an example of code that would produce the content match in the result along with an example result?

@bmbouter
Copy link

Also I filed this Pulp story: https://pulp.plan.io/issues/5788

@chouseknecht
Copy link
Contributor Author

@bmbouter

The example we discussed while in Durham was from Community Galaxy. Here's an example:

https://galaxy.ansible.com/api/internal/ui/search/?deprecated=false&keywords=dynatrace&order_by=-relevance&page=1

Look for content_match inside the collection object.

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

No branches or pull requests

2 participants