Skip to content

Method facet_rules

marufcetin edited this page Sep 1, 2026 · 1 revision

Method: facet_rules()

Turkce Dokumantasyon | English Documentation

Category: Query & Search Methods
Submodule: AmberDB::Index::Facet
Entry Type: Rule Evaluation


1. Definition and Overview

facet_rules() evaluates whether a given record qualifies for inclusion into the columnar facet navigation index (.fac). It automatically evaluates stock status, visibility, and integrates with junk_rules.


2. Syntax and Signature

my $is_eligible = $adb->facet_rules($table_info, @record);

3. Practical Code Example

my $table_info = $adb->table_attr("catalog_product");
if ($adb->facet_rules($table_info, @product_record)) {
    print "Product is active and eligible for facet menu display.\n";
}

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