Class SearchIndexer
Inheritance
System.Object
SearchIndexer
Syntax
public class SearchIndexer
Constructors
SearchIndexer(IEnumerable<SearchIndexer.Root>)
Declaration
public SearchIndexer(IEnumerable<SearchIndexer.Root> roots)
Parameters
SearchIndexer(String)
Declaration
public SearchIndexer(string rootPath)
Parameters
| Type |
Name |
Description |
| System.String |
rootPath |
|
SearchIndexer(String, String)
Declaration
public SearchIndexer(string rootPath, string rootName)
Parameters
| Type |
Name |
Description |
| System.String |
rootPath |
|
| System.String |
rootName |
|
Properties
entrySeparators
Declaration
public char[] entrySeparators { get; set; }
Property Value
| Type |
Description |
| System.Char[] |
|
enumerateRootEntriesHandler
Declaration
public SearchIndexer.EnumerateRootEntriesHandler enumerateRootEntriesHandler { get; set; }
Property Value
getEntryComponentsHandler
Declaration
public SearchIndexer.GetEntryComponentsHandler getEntryComponentsHandler { get; set; }
Property Value
getIndexFilePathHandler
Declaration
public SearchIndexer.GetIndexFilePathHandler getIndexFilePathHandler { get; set; }
Property Value
getQueryTokensHandler
Declaration
public SearchIndexer.GetQueryTokensHandler getQueryTokensHandler { get; set; }
Property Value
maxIndexCharVariation
Declaration
public int maxIndexCharVariation { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
minIndexCharVariation
Declaration
public int minIndexCharVariation { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
roots
Declaration
public SearchIndexer.Root[] roots { get; }
Property Value
skipEntryHandler
Declaration
public SearchIndexer.SkipEntryHandler skipEntryHandler { get; set; }
Property Value
Methods
Build()
Declaration
IsReady()
Declaration
Returns
| Type |
Description |
| System.Boolean |
|
Search(String, Int32)
Declaration
public IEnumerable<SearchIndexer.EntryResult> Search(string query, int maxScore = 2147483647)
Parameters
| Type |
Name |
Description |
| System.String |
query |
|
| System.Int32 |
maxScore |
|
Returns
UpdateIndexWithNewContent(String[], String[], String[])
Declaration
protected void UpdateIndexWithNewContent(string[] updated, string[] removed, string[] moved)
Parameters
| Type |
Name |
Description |
| System.String[] |
updated |
|
| System.String[] |
removed |
|
| System.String[] |
moved |
|