Histograms for easy searching

2006-12-04

Photo applications such as KPhotoAlbum have shown that navigation by histograms can be very convenient. Prerequisite of such navigation is that you have fast access to numerical properties of the items you want to navigate. In Strigi, many numerical properties such as modification time, size, embedding depth, width or height are indexed. This enables Strigi to quickly make histograms of these properties. By clicking on a bar in the histogram, the user can quickly and intuitively focus on a subset the items that are shown.

Today I've committed code to SVN that allows any application talking to Strigi to easily get out histograms. With the call

histogram getHistogram(query, fieldname, labeltype)

you can do this. histogram is a list of string,count pairs. fieldname can be mtime, size etc. and labeltype can be either numerical or time.

Here are two screenshots:


A histogram showing the distribution of 'depth' for the hits resulting from the query. The depth is the nesting depth of a file. 0 means the file is not nested. 2 means the file is embedded in an embedded file.


A histogram showing the size distribution for the hits resulting from the query.

Comments

Post a comment