I noticed today that the Ansible Documentation search engine gives less-than-optimal results. For example, I used to search for ‘ansible.builtin.file’ and the first result would be the ansible.builtin.file module. But now I get a list like as shown in the screenshot. I have to scroll quite a ways down the page to find the module I’m looking for. When I finally do find the module, I click to view its documentation, and every search term is highlighted in yellow on the page. Maybe I’m not using the search engine correctly? Is there documentation on how to use it? I’d file a bug, but I don’t know where to file the bug report to. I’m also not entirely sure this is actually a bug and not a pebcak. The new search engine has a sort of “AI feel” to it, but honestly I don’t know how it’s developed.
The yellow highlighting indicates that the search query was split by words. When I wrap the search query in quotes, I get basically the same list of results. The quotes have no effect.
Yes, this is the OpenSearch search engine we use now. The older search was proprietary and costs $$. We are now on the free option for community documentation. I don’t know how to improve it, to be honest, but open to suggestions or alternatives.
Thank you for verifying. I’m glad it’s not AI-powered and that you’ve chosen a FOSS option. I think I just have to read the documentation for OpenSearch and figure out how to use it effectively. Odd that it isn’t intuitive by default though. I would expect wrapping the search query in quotes would search for the literal string on any search engine.
Please do note that the content is the same on ansible.readthedocs.io as it is on docs.ansible.com. However the Ansible package docs and core docs on ReadTheDocs remain somewhat “experimental” for the time being. You should always consult docs.ansible.com as the official content for those two doc sets.
Also, if you do find the search on ReadTheDocs more efficient or useful, please let us know! That would be interesting feedback. Thank you.
Thank you! The fly-out menu on RTD is more useful when I want to find a module by searching its literal name, like “ansible.builtin.file”. The first result is exactly what I want.