# Web site address for effective duckduckgo !Bang

**URL:** <https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257>\
**Category:** Newbie\
**Created:** [March 18, 2022, 2:42pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257 "2022-03-18T14:42:52Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![daves](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/daves/32/23102_2.png) [@daves](https://root-forum.cern.ch/u/daves)\
**Post date:** [March 18, 2022, 2:42pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/1 "2022-03-18T14:42:52Z")

</div>

Hi all, this is a workflow tooling question for personal convenience:

TLDR: What is the correct url (or is there one) in the form of `${url}${search_term}` that would directly return a search as if `${search_term}` had been directly entered into the search bar at `https://root.cern.ch/`?

Long version:

- duckduckgo’s !bang for root (literally “`!root`”) is broken

- (explanation of [duckduckgo !bang](https://duckduckgo.com/bang), and why it matters to me): As a convenience, a web search through duckduckgo has an option to prefix a search with a “!bang” to directly return searches through another site. This is very convenient while programming with c++ reference. I can enter `!c++ lower_bound` into the (duckduckgo) search toolbar and my browser directly goes to the top search result for lower\_bound from `http://www.cplusplus.com`. This page has the documentation details for c++'s std::lower\_bound which is what I want. It does this though by returning the url `http://www.cplusplus.com/search.do?q=lower_bound`, which [cplusplus.com](http://cplusplus.com) redirects to the correct page.

- Current root status: Duckduckgo also has a bang for root, literally “!root”. However, it is to an old url search and is broken 🙁. The current address for `${url}` for `!root` is `http://root.cern.ch/drupal/search/node/` which doesn’t work as a !bang as desired. It would be very convenient if:  
(a) there were an updated url such that `!root TPRofile2D` (for example) would return the equivalent of entering “TProfile2D” into the search bar at [https://root.cern.ch/](https://root.cern.ch/) or (even better in my opinion),  
(b) directly returned the top hit for that search

I would be happy to personally update the request at [duckduckgo.com](http://duckduckgo.com), but have not successfully found the proper url term.

Thanks very much!

FYI: `!ihep` is another terribly convenient bang

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2022, 2:55pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/2 "2022-03-18T14:55:47Z")

</div>

Hello, and welcome to the ROOT forum.  
I personally do not know how to update this “duckduckgo !bang” for root.  
I am not who to ping. Lets try @bellenot , @Axel , @eguiraud

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [March 18, 2022, 3:46pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/3 "2022-03-18T15:46:00Z")

</div>

Updates to DDG Bangs can be submitted on the same page as suggesting a new bang

> **[DuckDuckGo New !Bang](https://duckduckgo.com/newbang)**
>
> Submit a new !bang to DuckDucGo, or update an existing !bang.

---

<div class="post-metadata">

**Author:** ![daves](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/daves/32/23102_2.png) [@daves](https://root-forum.cern.ch/u/daves)\
**Post date:** [March 18, 2022, 3:48pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/4 "2022-03-18T15:48:30Z")

</div>

Yes, thanks! I think I wasn’t clear in my question – I have updated it accordingly. I will be happy to request the update to the bang. However, I do not know the correct url with which to update the bang to get the desired behavior. Do you know?

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 18, 2022, 3:52pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/5 "2022-03-18T15:52:36Z")

</div>

Hi @daves ,  
thank you for bringing this up. In fact I put in a request to update `!root` to just search inside [ROOT: ROOT Reference Documentation](https://root.cern/doc/master) a while ago, maybe a year ago, and never heard back from the maintainers.

I don’t remember exactly what I had proposed at the time, but I think the best URL would actually be the equivalent of searching `site:root.cern/doc/master SEARCHTERM`, e.g. `https://duckduckgo.com/?q=site%3A%22root.cern%2Fdoc%2Fmaster%22+SEARCHTERM`, as search engines are actually better at indexing our content than Doxygen.

@couet might be able to suggest a better URL, if it exists, as we had this discussion some time ago among the ROOT team: basically we need a URL such that e.g. `https://some.url?search=SEARCHTERM` leads to a page with search results for that search term in the ROOT docs.

Cheers,  
Enrico

P.S.  
I find it terrible that doxygen does not provide a real search page, it’s really a missing feature.

---

<div class="post-metadata">

**Author:** ![James-Carroll](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/james-carroll/32/27108_2.png) [@James-Carroll](https://root-forum.cern.ch/u/James-Carroll)\
**Post date:** [March 18, 2022, 3:56pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/6 "2022-03-18T15:56:50Z")

</div>

Re-reading Daves original post, I get the impression the search bar being brought up specifically is this one, on the homepage.

 ![image](https://root-forum.cern.ch/uploads/default/original/3X/c/d/cdbf19c8440d0ee1069ce69d0f9111db78917d10.png)

Looking at the network panel, it appears that it’s actually searching with Google via their programmable search engine platform. I’ve no idea how it’s implemented, but I’m cautious it could require the use of an API key that would be private, meaning it could be hard to replicate this specific URL as a !bang, however I’ve not looked into the queries made in the browser in depth yet.

---

<div class="post-metadata">

**Author:** ![daves](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/daves/32/23102_2.png) [@daves](https://root-forum.cern.ch/u/daves)\
**Post date:** [March 18, 2022, 4:01pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/7 "2022-03-18T16:01:05Z")

</div>

Yes – that is was the search bar which I was referring to. In my personal experience, that has quickly given me the best results. However, that is probably a matter of personal preference, and perhaps there are other, better solutions for the `!root` bang. Anything reasonable would be great, as the current implementation is broken.

---

<div class="post-metadata">

**Author:** ![eguiraud](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/eguiraud/32/32217_2.png) [@eguiraud](https://root-forum.cern.ch/u/eguiraud)\
**Post date:** [March 18, 2022, 4:06pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/8 "2022-03-18T16:06:24Z")

</div>

I don’t think the search bar at root.cern does anything much more complex than searching google for `site:root.cern SEARCHTERM` – @couet can correct me if I’m wrong.

P.S.  
I know technically it uses [https://programmablesearchengine.google.com](https://programmablesearchengine.google.com) , but the end result should be similar.

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [March 18, 2022, 4:22pm UTC](https://root-forum.cern.ch/t/web-site-address-for-effective-duckduckgo-bang/49257/9 "2022-03-18T16:22:20Z")

</div>

> [@eguiraud](#):
>
> I don’t think the search bar at root.cern does anything much more complex than searching google for `site:root.cern SEARCHTERM` – @couet can correct me if I’m wrong.

I think you are right. It is equivalent to google as fa as I understand. You mentioned the doxygen search engine before. Seems to me that can be an option too.
