Class SearcherDatabase | Searcher | 4.0.9
docs.unity3d.com
    Show / Hide Table of Contents

    Class SearcherDatabase

    Inheritance
    Object
    SearcherDatabaseBase
    SearcherDatabase
    Inherited Members
    SearcherDatabaseBase.k_SerializedJsonFile
    SearcherDatabaseBase.DatabaseDirectory
    SearcherDatabaseBase.ItemList
    SearcherDatabaseBase.m_ItemList
    SearcherDatabaseBase.LoadFromFile()
    SearcherDatabaseBase.SerializeToFile()
    SearcherDatabaseBase.AddItemToIndex(SearcherItem, Int32, Action<SearcherItem>)
    Namespace: UnityEditor.Searcher
    Syntax
    public class SearcherDatabase : SearcherDatabaseBase

    Constructors

    SearcherDatabase(IReadOnlyCollection<SearcherItem>)

    Declaration
    public SearcherDatabase(IReadOnlyCollection<SearcherItem> db)
    Parameters
    Type Name Description
    IReadOnlyCollection<SearcherItem> db

    Properties

    MatchFilter

    Declaration
    public Func<string, SearcherItem, bool> MatchFilter { get; set; }
    Property Value
    Type Description
    Func<String, SearcherItem, Boolean>

    Methods

    Create(List<SearcherItem>, String, Boolean)

    Declaration
    public static SearcherDatabase Create(List<SearcherItem> items, string databaseDirectory, bool serializeToFile = true)
    Parameters
    Type Name Description
    List<SearcherItem> items
    String databaseDirectory
    Boolean serializeToFile
    Returns
    Type Description
    SearcherDatabase

    Load(String)

    Declaration
    public static SearcherDatabase Load(string databaseDirectory)
    Parameters
    Type Name Description
    String databaseDirectory
    Returns
    Type Description
    SearcherDatabase

    Match(String, SearcherItem, out Single)

    Declaration
    protected virtual bool Match(string query, SearcherItem item, out float score)
    Parameters
    Type Name Description
    String query
    SearcherItem item
    Single score
    Returns
    Type Description
    Boolean

    Search(String, out Single)

    Declaration
    public override List<SearcherItem> Search(string query, out float localMaxScore)
    Parameters
    Type Name Description
    String query
    Single localMaxScore
    Returns
    Type Description
    List<SearcherItem>
    Overrides
    SearcherDatabaseBase.Search(String, out Single)
    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