private function addFacetFields(Fieldset $fieldset)
    {
        $fieldset->addField(
            'facet_min_coverage_rate',
            'text',
            [
                'name'  => 'facet_min_coverage_rate',
                'label' => __('Facet coverage rate'),
                'class' => 'validate-digits validate-digits-range digits-range-0-100',
                'value' => '90',
                'note'  => __('Ex: Brand facet will be displayed only if 90% of the product have a brand.'),
            ],
            'is_filterable_in_search'
        );

        $fieldset->addField(
            'facet_max_size',
            'text',
            [
                'name'  => 'facet_max_size',
                'label' => __('Facet max. size'),
                'class' => 'validate-digits validate-greater-than-zero',
                'value' => '10',
                'note'  => __('Max number of values returned by a facet query.'),
            ],
            'facet_min_coverage_rate'
        );

        $fieldset->addField(
            'facet_sort_order',
            'select',
            [
                'name'   => 'facet_sort_order',
                'label'  => __('Facet sort order'),
                'values' => $this->filterSortOrder->toOptionArray(),
            ],
            'facet_max_size'
        );

        return $this;
    }
private function addFacetFields(Fieldset $fieldset)
    {
        $fieldset->addField(
            'facet_min_coverage_rate',
            'text',
            [
                'name'  => 'facet_min_coverage_rate',
                'label' => __('Facet coverage rate'),
                'class' => 'validate-digits validate-digits-range digits-range-0-100',
                'value' => '90',
                'note'  => __('Ex: Brand facet will be displayed only if 90% of the product have a brand.'),
            ],
            'is_filterable_in_search'
        );

        $fieldset->addField(
            'facet_max_size',
            'text',
            [
                'name'  => 'facet_max_size',
                'label' => __('Facet max. size'),
                'class' => 'validate-digits validate-greater-than-zero',
                'value' => '10',
                'note'  => __('Max number of values returned by a facet query.'),
            ],
            'facet_min_coverage_rate'
        );

        $fieldset->addField(
            'facet_sort_order',
            'select',
            [
                'name'   => 'facet_sort_order',
                'label'  => __('Facet sort order'),
                'values' => $this->filterSortOrder->toOptionArray(),
            ],
            'facet_max_size'
        );

        return $this;
    }
private function addFacetFields ( Fieldset $ fieldset ) { $ fieldset -> addField ( 'facet_min_coverage_rate' , 'text' , [ 'name' => 'facet_min_coverage_rate' , 'label' => __ ( 'Facet coverage rate' ) , 'class' => 'validate-digits validate-digits-range digits-range-0-100' , 'value' => '90' , 'note' => __ ( 'Ex: Brand facet will be displayed only if 90% of the product have a brand.' ) , ] , 'is_filterable_in_search' ) ; $ fieldset -> addField ( 'facet_max_size' , 'text' , [ 'name' => 'facet_max_size' , 'label' => __ ( 'Facet max. size' ) , 'class' => 'validate-digits validate-greater-than-zero' , 'value' => '10' , 'note' => __ ( 'Max number of values returned by a facet query.' ) , ] , 'facet_min_coverage_rate' ) ; $ fieldset -> addField ( 'facet_sort_order' , 'select' , [ 'name' => 'facet_sort_order' , 'label' => __ ( 'Facet sort order' ) , 'values' => $ this -> filterSortOrder -> toOptionArray ( ) , ] , 'facet_max_size' ) ; return $ this ; }
Append faceting related fields.

@param Fieldset $fieldset Target fieldset

@return FrontPlugin
Append faceting related fields .