2using System.Text.RegularExpressions;
3using System.Threading.Tasks;
50 public override bool Equals(
object obj)
72 string Preamble = this.
Keyword.Substring(0, i);
73 char[] Characters = Preamble.ToCharArray();
75 string ToExclusive =
new string(Characters);
78 KeyValuePair<string, object>[] Records = await
Process.Index.GetEntriesAsync(Preamble, ToExclusive);
80 foreach (KeyValuePair<string, object> Rec
in Records)
82 Match M = this.
Parsed.Match(Rec.Key);
83 if (M.Success && M.Index == 0 && M.Length == Rec.Key.Length && Rec.Value is
TokenReferences References)
84 Result.Add(
new KeyValuePair<string, TokenReferences>(Rec.Key, References));
Static interface for database persistence. In order to work, a database provider has to be assigned t...
Abstract base class for keywords.
virtual async Task< bool > Process(SearchProcess Process)
Processes the keyword in a search process.
abstract Task< IEnumerable< KeyValuePair< string, TokenReferences > > > GetTokenReferences(SearchProcess Process)
Gets available token references.
Represents a wildcard keyword.
Contains information about a search process.
Represents a wildcard keyword.
WildcardKeyword(string Keyword)
Represents a plain keyword, where keyword acts as a prefix.
WildcardKeyword(string Keyword, string Wildcard)
Represents a wildcard keyword.
override async Task< IEnumerable< KeyValuePair< string, TokenReferences > > > GetTokenReferences(SearchProcess Process)
Gets available token references.
override bool Equals(object obj)
override string ToString()
override int OrderComplexity
Order complexity (within category) of keyword
Contains a sequence of object references that include the token in its indexed text properties.
A chunked list is a linked list of chunks of objects of type T .