// SPDX-License-Identifier: Apache-2.0
//! Index meta-ops: RebuildIndex.
use QueryResult;
use crateLiteError;
use crateLiteQueryEngine;
use crateStorageEngine;
/// `RebuildIndex` — rebuild index entries from the collection's rows: the
/// index named `index_name`, or every index on `collection` when `None`.
///
/// The `concurrent` flag has no effect on Lite: a rebuild holds the CRDT lock
/// for its duration, so writes wait for it rather than run beside it.
pub async