Library/PackageCache/com.unity.quicksearch@1.6.0-preview.8/Editor/Indexing/SearchIndexer.cs
/// <summary>
/// Incremental update of the index.
/// </summary>
/// <param name="updated">Entries to update.</param>
/// <param name="removed">Entries to remove.</param>
/// <param name="moved">Entries that were moved and need updating.</param>
Incremental update of the index.
Incremental update of the index .
protected void UpdateIndexWithNewContent(string[] updated, string[] removed, string[] moved)
        {
            lock (this)
            {
                Start();
                foreach (var id in updated.Concat(moved).Distinct())
                {
                    var documentIndex = AddDocument(id, true);
                    FetchEntries(id, documentIndex, m_BatchIndexes, 0);
                }
                Finish((bytes) => {}, removed, false);
            }
        }
protected void UpdateIndexWithNewContent ( string [ ] updated , string [ ] removed , string [ ] moved ) { lock ( this ) { Start ( ) ; foreach ( var id in updated . Concat ( moved ) . Distinct ( ) ) { var documentIndex = AddDocument ( id , true ) ; FetchEntries ( id , documentIndex , m_BatchIndexes , 0 ) ; } Finish ( ( bytes ) => { } , removed , false ) ; } }
Incremental update of the index.
Incremental update of the index .
updated
string[]
Entries to update.
Entries to update .
removed
string[]
Entries to remove.
Entries to remove .
moved
string[]
Entries that were moved and need updating.
Entries that were moved and need updating .