August 2008
PermaLink Using Domain Search to index files in the filesystem09.08.2008 14:33
After posting a trick regarding Domino Domain Search I was asked to provide some basic details on the configuration. I am going to show how to configure Domino Domain Search to index files so you can search for content.


PermaLink A Domain Search trick05.08.2008 17:02
Domain Search is quite an old feature of IBM Lotus Domino but not quite popular. One reason may be that using Domain Search from a browser has some limitations (read on for a workaround). Basically, it is a fulltext search across multiple databases (even on different servers) and files (yes files on the filesystem, not attached to documents in a database).

The problem is that usually not all of your applications are fully web-enabled so you prefer to open search results from Domain Search with the Notes Client, not the web browser.
The trick is to customize the form (SearchResults) in the database catalog.nsf. Add the following JavaScript to the "Web - onLoad Event":

var href = document.getElementsByTagName("a");
var src;
var epos;
for (var i = 0; i < href.length; i++) {
src = href[i].href;

epos = src.indexOf("yourdatabase.nsf");
if (epos > (-1) ) {
href[i].href = "notes://domsrv" + src.substring(10, src.length);
href[i].target = "_OpenResult";
}
}

You will have to adopt "yourdatabase.nsf" to the filename of a database you want to open with Lotus Notes and the notes: link to your servername as well as the length of 10 in the substring is dependent on the length of your servername.



PermaLink What makes a Notes Client a Standard Client opposed to Basic Client05.08.2008 15:47
You may already know that even if you install a Notes Standard Client (the one with the Eclipse stuff) you can force the start of a Notes Basic Client by creating a new shortcut to notes.exe adding the parameter "-sa".
Now think of a situation where you want to have ONE software installation pack for all your client but make it up to the user to decide if he wants to start the Standard or the Basic Client. You will find out that using a second shortcut is not sufficient as Notes may be fired up by clicking a mailto-link in a browser or use "send to email" in his Windows Explorer.
The trick is that notes.exe does a very simple check which client is installed, it search the program directory for a folder "framework". If it exists, the Eclipse GUI will fire up, if not we will see the Basic Client GUI.
So the trick is to have a small batch file that renames the folder "framework" to eg "framework.disabled" and back on the choice of the user.


Disclaimer
The weblog represent my personal views and comments and does not represent the views of my current or previous employers or customers.
About me
By Category
The BlogRoll
Christians sites
other Bloggers
Travel related
RSS News Feed OpenNTF
Monthly Archive
2016
2014
2013
2012
2011
2010
2010
2010
2010
2009
2009
2009
2009
2009
2009
2009
2009
2008
2008
2008
2008
2008
2008
2008
2007
2007
2007
2007
2007
2007
2007
2007
2007
2007
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2006
2005
2005
2005
2005
2005
2005
2005
2005
2005
2005
2005
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2004
2003
2003
Full Archive
Advertisement