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

Here how to use it:

For Chrome:

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

Image:OpenSearch functionality for XPages.info...

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

Image:OpenSearch functionality for XPages.info...

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

Image:OpenSearch functionality for XPages.info...

For Firefox:

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

Image:OpenSearch functionality for XPages.info...

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

Image:OpenSearch functionality for XPages.info...

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="http://a9.com/-/spec/opensearch/1.1/" xmlns:moz="http://www.mozilla.org/2006/browser/search/"> 
<ShortName>XPages</ShortName>
<Description>XPages.info Search</Description>
<InputEncoding>UTF-8</InputEncoding>
<Url type="text/html" method="get" template="http://xpages.info/XPagesHome.nsf/SearchResults.xsp?search={searchTerms}"/>
</OpenSearchDescription>


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 XPages.info...

That's all!

Now I have two To-Do's for myself. I'll try to extend search functionality of XPages.info 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 OpenSearch.org for more information...

Serdar Basegmez   |   April 16 2012 12:20:00 PM   |    Community  XPages    |  
  |   Next   |   Previous

Comments (3)

Gravatar Image
Serdar Basegmez    http://www.developi.com    04/17/2012 7:07:12 PM

@Bruce, I added the tag to xpages.info :)

Gravatar Image
Giuseppe Grasso    http://www.dominopoint.it    04/17/2012 12:12:38 PM

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

Gravatar Image
Bruce    http://elguji.com    04/16/2012 6:29:58 PM

Serdar,

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