메소드 | 설명 | |
---|---|---|
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. |
리턴 | string[] |
public static IsDocumentTypeTagIncluded ( string currentTag, string includedTags ) : bool | ||
currentTag | string | The tag to check for. |
includedTags | string | The tag array. |
리턴 | bool |
public static IsSplitChar ( char current ) : bool | ||
current | char | The current char. |
리턴 | bool |
public static PurgeResultsForAllWords ( SearchResultCollection results, string queryWords ) : float | ||
results | SearchResultCollection | The results to purge. |
queryWords | string | The query words. |
리턴 | float |
public static PurgeResultsForExactPhrase ( SearchResultCollection results, string queryWords ) : float | ||
results | SearchResultCollection | The results to purge. |
queryWords | string | The query words. |
리턴 | 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. |
리턴 | string |
public static RemoveStopWords ( WordInfo words, string stopWords ) : WordInfo[] | ||
words | WordInfo | The input words. |
stopWords | string | The array of stop words. |
리턴 | 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. |
리턴 | SearchResultCollection |
public static SkipSplitChars ( ushort startIndex, string content ) : ushort | ||
startIndex | ushort | The start index. |
content | string | The content. |
리턴 | ushort |
public static Tokenize ( string text ) : WordInfo[] | ||
text | string | The text to tokenize. |
리턴 | 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. |
리턴 | WordInfo[] |