Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/Indexing/ObjectIndexer.cs
/// <summary>
/// Split a value into multiple components (see <see cref="SearchIndexer.getEntryComponentsHandler"/>) and index each component individually as value of a specific property name.
/// </summary>
/// <param name="id">Debug information</param>
/// <param name="documentIndex">Document where the indexed word was found.</param>
/// <param name="name">Key used to retrieve the value. See <see cref="SearchIndexer.AddProperty"/></param>
/// <param name="value">Value to add to the index.</param>
Split a value into multiple components  and index each component individually as value of a specific property name.
Split a value into multiple components and index each component individually as value of a specific property name .
public void IndexPropertyComponents(string id, int documentIndex, string name, string value)
        {
            foreach (var c in GetComponents(value, documentIndex))
            {
                IndexDebugMatch(id, name, c);
                AddProperty(name, c, settings.baseScore, documentIndex, saveKeyword: true, exact: false);
            }
            IndexDebugMatch(id, name, value);
            AddExactProperty(name, value.ToLowerInvariant(), settings.baseScore, documentIndex, saveKeyword: false);
        }
public void IndexPropertyComponents ( string id , int documentIndex , string name , string value ) { foreach ( var c in GetComponents ( value , documentIndex ) ) { IndexDebugMatch ( id , name , c ) ; AddProperty ( name , c , settings . baseScore , documentIndex , saveKeyword : true , exact : false ) ; } IndexDebugMatch ( id , name , value ) ; AddExactProperty ( name , value . ToLowerInvariant ( ) , settings . baseScore , documentIndex , saveKeyword : false ) ; }
Split a value into multiple components (see ) and index each component individually as value of a specific property name.
Split a value into multiple components ( see ) and index each component individually as value of a specific property name .
id
string
None
documentIndex
int
Document where the indexed word was found.
Document where the indexed word was found .
name
string
Key used to retrieve the value. See
Key used to retrieve the value . See
value
string
Value to add to the index.
Value to add to the index .