I have had problems when searching a database which has been web enabled. The results that are produced from a query do not match the results from the same query ran from the Notes Client 8 search bar. If the same search is carried out on a Notes Client 6 then it does return the same results as the web search. This is a problem when the searching is not consistent across the interfaces to the same database and data.

This is due to improvements in searching in the version 8 Notes client to make the searching more like the way search engines of the Internet work (from the users point of view).

 

<script language="JavaScript" type="text/javascript">
<!--
function validateForm()
{
if (document.Searchform.Query.value==0){
   alert("You must enter a keyword before searching.");
   document.Searchform.Query.focus();
   return false;
   }
var string = "";
var querystring = document.Searchform.Query.value;
if (querystring.indexOf('\"') == -1) {
if (querystring.indexOf(' ') != -1) {
  string = querystring.split(' ');
  var newstring = string[0];
  for (i=1;i<string.length; i++)
    newstring += " AND " + string[i];
  document.Searchform.Query.value = newstring;
}
}
}
// -->
</script>

 

<FORM name="Searchform" method="GET" action=" +  + "><input type="hidden" name="SearchView" value="<Computed Value>"><input type="hidden" name="SearchOrder" value="1"><input type="hidden" name="SearchWV" value="TRUE"><input type="hidden" name="SearchMax" value="0"><input type="Text" name="Query" Size="25"><input type=Submit value="Search" class="searchbutton" onClick="return validateForm(this);"></FORM>

 

The above javascript, that I have written, will modify the query string on submit to add an AND condition between each of the search terms. This gives the same results as the Notes v8 client searching.

 

Update: I will test the searching on Xpages to see whether that is also consistent or not.