Skip to content

Method field_fltkeys

Maruf Çetin edited this page Sep 1, 2026 · 2 revisions

Method: field_fltkeys()

Turkce Dokumantasyon | English Documentation

Category: Query & Search Methods
Submodule: AmberDB::Index::Facet
Entry Type: Facet Key Aggregation


1. Definition and Overview

field_fltkeys() calculates facet key occurrence counts for a single target block directly from its columnar forward index (_${target_block}.fac). It automatically resolves dictionary string labels via .unq.


2. Syntax and Signature

my $counts_hashref = $adb->field_fltkeys($table_id, \%options);

3. Practical Code Example

my $brand_counts = $adb->field_fltkeys("catalog_product", {
    target_block => 2,                # Calculate for Brand (Block 2)
    base_ids     => \@search_results, # Scope calculation to search matches
});

# Returns: { "Apple" => 42, "Sony" => 18, "Bose" => 12 }

4. 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