Class SearchIndexer
Inheritance
SearchIndexer
Syntax
public class SearchIndexer
Constructors
SearchIndexer(IEnumerable<SearchIndexerRoot>)
Declaration
public SearchIndexer(IEnumerable<SearchIndexerRoot> roots)
Parameters
SearchIndexer(String)
Declaration
public SearchIndexer(string rootPath)
Parameters
Type |
Name |
Description |
String |
rootPath |
|
SearchIndexer(String, String)
Declaration
public SearchIndexer(string rootPath, string rootName)
Parameters
Properties
entrySeparators
Declaration
public char[] entrySeparators { get; set; }
Property Value
enumerateRootEntriesHandler
Declaration
public Func<SearchIndexerRoot, IEnumerable<string>> enumerateRootEntriesHandler { get; set; }
Property Value
getEntryComponentsHandler
Declaration
public Func<string, int, IEnumerable<string>> getEntryComponentsHandler { get; set; }
Property Value
getIndexFilePathHandler
Declaration
public Func<string, string> getIndexFilePathHandler { get; set; }
Property Value
getQueryTokensHandler
Declaration
public Func<string, string[]> getQueryTokensHandler { get; set; }
Property Value
maxIndexCharVariation
Declaration
public int maxIndexCharVariation { get; set; }
Property Value
minIndexCharVariation
Declaration
public int minIndexCharVariation { get; set; }
Property Value
roots
Declaration
public SearchIndexerRoot[] roots { get; }
Property Value
skipEntryHandler
Declaration
public Func<string, bool> skipEntryHandler { get; set; }
Property Value
Methods
Build()
Declaration
public virtual void Build()
Build(Boolean)
Declaration
public void Build(bool useThread)
Parameters
Type |
Name |
Description |
Boolean |
useThread |
|
IsReady()
Declaration
Returns
Search(String, Int32, Int32)
Declaration
public IEnumerable<SearchEntryResult> Search(string query, int maxScore = 2147483647, int patternMatchLimit = 2999)
Parameters
Returns
SearchTerms(String, Int32, Int32)
Declaration
public IEnumerable<SearchEntryResult> SearchTerms(string query, int maxScore = 2147483647, int patternMatchLimit = 2999)
Parameters
Returns
UpdateIndexWithNewContent(String[], String[], String[])
Declaration
protected void UpdateIndexWithNewContent(string[] updated, string[] removed, string[] moved)
Parameters