Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/Indexing/ObjectIndexer.cs
/// <summary>
/// Add a new word coming from a specific document to the index. The word will be added with multiple variations allowing partial search. See <see cref="SearchIndexer.AddWord"/>.
/// </summary>
/// <param name="id">Debug information</param>
/// <param name="word">Word to add to the index.</param>
/// <param name="documentIndex">Document where the indexed word was found.</param>
/// <param name="maxVariations">Maximum number of variations to compute. Cannot be higher than the length of the word.</param>
/// <param name="exact">If true, we will store also an exact match entry for this word.</param>
Add a new word coming from a specific document to the index. The word will be added with multiple variations allowing partial search. See .
Add a new word coming from a specific document to the index . The word will be added with multiple variations allowing partial search . See .
public void IndexWord(string id, string word, int documentIndex, int maxVariations, bool exact)
        {
            IndexDebugMatch(id, word);
            AddWord(word.ToLowerInvariant(), 2, maxVariations, settings.baseScore, documentIndex);
            if (exact)
                AddExactWord(word.ToLowerInvariant(), settings.baseScore - 1, documentIndex);
        }
public void IndexWord ( string id , string word , int documentIndex , int maxVariations , bool exact ) { IndexDebugMatch ( id , word ) ; AddWord ( word . ToLowerInvariant ( ) , 2 , maxVariations , settings . baseScore , documentIndex ) ; if ( exact ) AddExactWord ( word . ToLowerInvariant ( ) , settings . baseScore - 1 , documentIndex ) ; }
Add a new word coming from a specific document to the index.
Add a new word coming from a specific document to the index .
id
string
None
word
string
Word to add to the index.
Word to add to the index .
documentIndex
int
Document where the indexed word was found.
Document where the indexed word was found .
maxVariations
int
Maximum number of variations to compute. Cannot be higher than the length of the word.
Maximum number of variations to compute . Cannot be higher than the length of the word .
exact
bool
If true, we will store also an exact match entry for this word.
If true we will store also an exact match entry for this word .