Today we have added a very simple feature to site. It provides an integrated search functionality to be used with browsers.

Here how to use it:

For Chrome:

1. Open site once.
2. Close your browser, reopen and at the address bar, start writing "xpages". Depending on how frequent you are using, it will suggest the address in the bar. For me, "x" character is enough :)

Image:OpenSearch functionality for

3. Now you see a new instruction in the address bar: "Press Tab to search XPages". Do what it says :)

Image:OpenSearch functionality for

4. Press enter to see the search results related with your keyword:

Image:OpenSearch functionality for

For Firefox:

1. Open site.
2. Open Search Engine alternatives on the right and click "Add" option.

Image:OpenSearch functionality for

3. Now has been added to Firefox registered search engines. To use it more practically, Click "Manage Search Engines" here.

Image:OpenSearch functionality for

4. Select our search engine, click "Edit Keywords" and enter a new keyword like "xp" here. Click OK to close this dialog.

5. Now go to a new window and enter "xp dynamic content" into the address bar... Voila!

I couldn't find a similar way to do this in Internet Explorer 9. If you know, please comment :)

How we did it?

It's pretty easy! You need to add two things to your database. First an XML file definition for opensearch:

<OpenSearchDescription xmlns="" xmlns:moz=""> 
<Description> Search</Description>
<Url type="text/html" method="get" template="{searchTerms}"/>

You can also add some more properties here such as an icon to show in the search engine listing.

We put this xml files into File Resources section of our database. Then we added a resource definition into the HEAD section of our home page:

Image:OpenSearch functionality for

That's all!

Now I have two To-Do's for myself. I'll try to extend search functionality of to provide single point of search for XPages-specific information.

The second To-Do is adding this to XSnippets. I noticed that searching snippets is not practical in the current situation.

OpenSearch provides much more possibilities than this. You can visit for more information...

Serdar Basegmez   |   April 16 2012 05:20:00 AM   |    Community  XPages    |  
  |   Next   |   Previous

Comments (3)

Gravatar Image
Serdar Basegmez    04/17/2012 12:07:12 PM

@Bruce, I added the tag to :)

Gravatar Image
Giuseppe Grasso    04/17/2012 5:12:38 AM

cool stuff, you shuld be able to add an icon using the <image> element

Gravatar Image
Bruce    04/16/2012 11:29:58 AM


Not seeing an icon in the drop down in FF after I have added. All other search sites have one. Can this be added?