Skip to content

Method set_index

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: set_index()

Turkce Dokumantasyon | English Documentation

Category: Maintenance & Tools Methods
Submodule: AmberDB::Tools
Entry Type: Deterministic Index Reconstruction


1. Definition and Overview

set_index() reconstructs all secondary index files (.inx, .src, .fld, .fac, .srt, .slg, Tier B .j*) from scratch directly from the authoritative master table (.db).


2. Syntax and Signature

$tools->set_index(%options);

3. Options

  • table: Single table name to rebuild.
  • tables: Array reference of multiple tables to rebuild.
  • ext: Specific index extension to rebuild (e.g. 'src' or 'fac').

4. Practical Code Example

# Rebuild all indexes for catalog_product
$tools->set_index(table => "catalog_product");

# Rebuild all tables
$tools->set_index();

5. See Also

AmberDB Encyclopedia

Home · A-Z Index


Getting Started & Guides


Core Concepts


Core CRUD Methods


Query, Search & Facets


Transactions & Locks


Cache, Buffer & Low-Level


Locale & Helpers


Maintenance & Tools


Configuration Flags


File Formats


Language

Clone this wiki locally