Skip Navigation
Details
Author: Jake Howlett
Date: Fri 27 Apr 2007

Permalink

Comments / Add / Subscribe

« The Art of Estimation | Blogs | Ext.ND JavaScript Libray - Podcast »

Basic Math Bug in Catalog.nsf

The template for Catalog.nsf contains a Domain Search form. When the results are displayed, there's a link/button to go next page of results. The hide-when formula for the link (at least in Domino 7) is:

(Start+Count)>=TotalHits

The idea being that you don't see a next link if there are no more results to see. Looks innocent enough. Well imagine our search found 11 documents and we're starting the results at 1 and showing 10 at a time. You do the math.

My venture in to the world of Domain Search came about after last week's post about a blogging system. Although my experience thus far are quite promising it's still a little disconcerting to be seeing low-level bugs like this one.

Comments

David (Fri 27 Apr 2007 05:59 AM) e-mail

No doubt things have changed (improved?) since I last used it properly but the domain index (ie. index of multiple databases and even file systems) was great until the target of the indexing changed. There was a real pain of a procedure to follow to delete the index and re-create. Still, when it was correct it was a great asset.

Jake Howlett (Fri 27 Apr 2007 06:02 AM)

What do you mean by "target of the indexing changed"? The database moved or the content changed?

Dietmar (Thu 3 May 2007 06:14 PM)

I agree that one must be careful when changing which filesystem/databases to be indexed, to avoid that index data still exists for content already being deleted or moved. To manage this, one has to observe the content of ftdomain.di directory on the server and the domain index config and status views in the indexing server's catalog.nsf.

However, it's not that kind of "real pain", provided, the infrastructure doesn't change that often.

Dietmar (Thu 3 May 2007 06:20 PM)

Oh, and I forgot:

The bug is in there since R5 and still will be (I strongly believe) in R8. So, I copied all required forms, subforms and other code required for Domain Search from catalog into my own database and customized it my way, to leave the standard catalog template alone.

starrow (Sun 6 May 2007 09:53 AM) website

Interesting finding.

Such a math error is understandable for we can imagine making it ourselves in daily coding.

Add your response here:

Name *:
E-mail:
Protected from spambots!
Website:
rel="nofollow"

Comment *:
HTML is not allowed!

Note: This blog entry is more than two weeks old so your comment, as an anti-spam measure, will be sent for approval.