Method | Description | |
---|---|---|
CleanupKeywords ( string keywords ) : string[] |
Cleans up keyworks from invalid characters.
|
|
IsDocumentTypeTagIncluded ( string currentTag, string includedTags ) : bool |
Determines whether a document tag is contained in a tag array. The comparison is case-insensitive. |
|
IsSplitChar ( char current ) : bool |
Determines whether a char is a split char.
|
|
PurgeResultsForAllWords ( SearchResultCollection results, string queryWords ) : float |
Purges the invalid results when SearchOptions is AllWords.
|
|
PurgeResultsForExactPhrase ( SearchResultCollection results, string queryWords ) : float |
Purges the invalid results when SearchOptions is ExactPhrase.
|
|
RemoveDiacriticsAndPunctuation ( string input, bool isSingleWord ) : string |
Removes "accents" and punctuation from a string, transforming it to lowercase (culture invariant).
|
|
RemoveStopWords ( WordInfo words, string stopWords ) : WordInfo[] |
Removes stop words from a set of words (case insensitive).
|
|
SearchInternal ( string query, string documentTypeTags, bool filterDocumentType, SearchOptions options, IWordFetcher fetcher ) : SearchResultCollection |
Performs a search in the index.
|
|
SkipSplitChars ( ushort startIndex, string content ) : ushort |
Computes the index of the first non-split char given a start index.
|
|
Tokenize ( string text ) : WordInfo[] |
Tokenizes a string.
|
|
Tokenize ( string text, WordLocation location ) : WordInfo[] |
Tokenizes a string.
|
public static CleanupKeywords ( string keywords ) : string[] | ||
keywords | string | The keywords to cleanup. |
return | string[] |
public static IsDocumentTypeTagIncluded ( string currentTag, string includedTags ) : bool | ||
currentTag | string | The tag to check for. |
includedTags | string | The tag array. |
return | bool |
public static IsSplitChar ( char current ) : bool | ||
current | char | The current char. |
return | bool |
public static PurgeResultsForAllWords ( SearchResultCollection results, string queryWords ) : float | ||
results | SearchResultCollection | The results to purge. |
queryWords | string | The query words. |
return | float |
public static PurgeResultsForExactPhrase ( SearchResultCollection results, string queryWords ) : float | ||
results | SearchResultCollection | The results to purge. |
queryWords | string | The query words. |
return | float |
public static RemoveDiacriticsAndPunctuation ( string input, bool isSingleWord ) : string | ||
input | string | The input string. |
isSingleWord | bool | A value indicating whether the input string is a single word. |
return | string |
public static RemoveStopWords ( WordInfo words, string stopWords ) : WordInfo[] | ||
words | WordInfo | The input words. |
stopWords | string | The array of stop words. |
return | WordInfo[] |
public static SearchInternal ( string query, string documentTypeTags, bool filterDocumentType, SearchOptions options, IWordFetcher fetcher ) : SearchResultCollection | ||
query | string | The search query. |
documentTypeTags | string | The document type tags to include in the search. |
filterDocumentType | bool | |
options | SearchOptions | The search options. |
fetcher | IWordFetcher | An object that is able to fetch words. |
return | SearchResultCollection |
public static SkipSplitChars ( ushort startIndex, string content ) : ushort | ||
startIndex | ushort | The start index. |
content | string | The content. |
return | ushort |
public static Tokenize ( string text ) : WordInfo[] | ||
text | string | The text to tokenize. |
return | WordInfo[] |
public static Tokenize ( string text, WordLocation location ) : WordInfo[] | ||
text | string | The text to tokenize. |
location | WordLocation | The location of the words that are extracted. |
return | WordInfo[] |