Naanou.Common.Search
Class SearchPart

A part of a search

Field Summary
string[] Context
         Context, used for ranking results
Naanou.Common.Search.QueryOn Field
         Field that is being searched on
int MinimumConfidence
         Minimum confidence we want for results for this part
string Query
         Query on that field

Constructor Summary
SearchPart(Naanou.Common.Search.QueryOn field, string query, string[] context)
         Creates a new part with no minimum confidence threshold
SearchPart(Naanou.Common.Search.QueryOn field, string query, string[] context, int minConfidence)
         Creates a new part with a confidence threshold

Method Summary
string Dump()
         Dump all details of part and contained contexts

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


Field Detail

Context

public string[] Context

Context, used for ranking results


Field

public Naanou.Common.Search.QueryOn Field

Field that is being searched on


MinimumConfidence

public int MinimumConfidence

Minimum confidence we want for results for this part


Query

public string Query

Query on that field

Constructor Detail

SearchPart

public SearchPart(Naanou.Common.Search.QueryOn field,
                  string query,
                  string[] context)

Creates a new part with no minimum confidence threshold

Parameters:
field - Field
query - Query key
context - Contextual keys (can be null)

SearchPart

public SearchPart(Naanou.Common.Search.QueryOn field,
                  string query,
                  string[] context,
                  int minConfidence)

Creates a new part with a confidence threshold

Parameters:
field - Field
query - Query key
context - Contextual keys (can be null)
minConfidence - Minium confidence (0-100) for results to have. Allows for server-side filtering
Method Detail

Dump

public string Dump()

Dump all details of part and contained contexts

Returns:
Details of part and contained contexts