Class SearchIndexer | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class SearchIndexer

    Inheritance
    System.Object
    SearchIndexer
    FileSearchIndexer
    Namespace: Unity.QuickSearch.Providers
    Syntax
    public class SearchIndexer

    Constructors

    SearchIndexer(IEnumerable<SearchIndexer.Root>)

    Declaration
    public SearchIndexer(IEnumerable<SearchIndexer.Root> roots)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<SearchIndexer.Root> roots

    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
    Type Description
    SearchIndexer.EnumerateRootEntriesHandler

    getEntryComponentsHandler

    Declaration
    public SearchIndexer.GetEntryComponentsHandler getEntryComponentsHandler { get; set; }
    Property Value
    Type Description
    SearchIndexer.GetEntryComponentsHandler

    getIndexFilePathHandler

    Declaration
    public SearchIndexer.GetIndexFilePathHandler getIndexFilePathHandler { get; set; }
    Property Value
    Type Description
    SearchIndexer.GetIndexFilePathHandler

    getQueryTokensHandler

    Declaration
    public SearchIndexer.GetQueryTokensHandler getQueryTokensHandler { get; set; }
    Property Value
    Type Description
    SearchIndexer.GetQueryTokensHandler

    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
    Type Description
    SearchIndexer.Root[]

    skipEntryHandler

    Declaration
    public SearchIndexer.SkipEntryHandler skipEntryHandler { get; set; }
    Property Value
    Type Description
    SearchIndexer.SkipEntryHandler

    Methods

    Build()

    Declaration
    public void Build()

    IsReady()

    Declaration
    public bool IsReady()
    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
    Type Description
    System.Collections.Generic.IEnumerable<SearchIndexer.EntryResult>

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023