Naanou.Search
Class ResultAggregate

Results aggregate for a particular resource.

Stores only the one copy of the result details, and keeps track of all the sources encountered for this resource

Field Summary
int confidence
double confidenceTotal
Naanou.Common.IEntry entry
string filename
string lastDir
System.Windows.Forms.ListViewItem listItem
string path
Naanou.Common.Search.SearchResult result
int sourceCount
Naanou.Common.Search.ContentSource[] sources

Constructor Summary
ResultAggregate(Naanou.Common.Search.SearchResult result, Naanou.Common.IEntry entry, string filename, string path, string lastDir)
         Constructor

Property Summary
int Confidence
         Gets the confidence level (0-100)
Naanou.Common.IEntry Entry
         Gets the first entry for this resource
string Filename
string LastDir
System.Windows.Forms.ListViewItem ListItem
         Gets or sets the list view item for this resource
string Path
Naanou.Common.Search.SearchResult Result
         Gets the first result for this resource
int SourcesCount
         Gets the number of sources this resource has

Method Summary
void AddSource(Naanou.Common.Search.ContentSource source)
void Merge(Naanou.Common.Search.SearchResult result, Naanou.Common.IEntry entry)
         Merges a new result for the same resource. If the source already exists, it is silently dropped.
Naanou.Common.Search.ContentSource[] Sources()
         Gets a new array of all sources that have this resource
void UpdateUI(int sourceColIndex)
         Causes list view item associated with aggregator to be updated

Methods inherited from class System.Object
Equals, Finalize, GetHashCode, GetType, MemberwiseClone, ToString


Field Detail

confidence

private int confidence


confidenceTotal

private double confidenceTotal


entry

private Naanou.Common.IEntry entry


filename

private string filename


lastDir

private string lastDir


listItem

private System.Windows.Forms.ListViewItem listItem


path

private string path


result

private Naanou.Common.Search.SearchResult result


sourceCount

private int sourceCount


sources

private Naanou.Common.Search.ContentSource[] sources

Constructor Detail

ResultAggregate

public ResultAggregate(Naanou.Common.Search.SearchResult result,
                       Naanou.Common.IEntry entry,
                       string filename,
                       string path,
                       string lastDir)

Constructor

Parameters:
result - Result
entry - Entry
Property Detail

Confidence

public int Confidence

Gets the confidence level (0-100)


Entry

public Naanou.Common.IEntry Entry

Gets the first entry for this resource


Filename

public string Filename


LastDir

public string LastDir


ListItem

public System.Windows.Forms.ListViewItem ListItem

Gets or sets the list view item for this resource


Path

public string Path


Result

public Naanou.Common.Search.SearchResult Result

Gets the first result for this resource


SourcesCount

public int SourcesCount

Gets the number of sources this resource has

Method Detail

AddSource

private void AddSource(Naanou.Common.Search.ContentSource source)


Merge

public void Merge(Naanou.Common.Search.SearchResult result,
                  Naanou.Common.IEntry entry)

Merges a new result for the same resource. If the source already exists, it is silently dropped.

Modifies the confidence and source count columns on next update

Parameters:
result -
entry -

Sources

public Naanou.Common.Search.ContentSource[] Sources()

Gets a new array of all sources that have this resource

Returns:
New array of all sources that have this resource

UpdateUI

public void UpdateUI(int sourceColIndex)

Causes list view item associated with aggregator to be updated

Parameters:
sourceColIndex - Source column index