Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 2.77 KB

ui-listing-grid-search.md

File metadata and controls

58 lines (49 loc) · 2.77 KB
layout group subgroup title menu_title menu_node menu_order github_link redirect_from
default
UI Library
B_UI Library Listing/Grid Component
Grid search indexing
Grid search indexing
1
ui-components/ui-listing-grid-search.md
/guides/v2.0/ui-library/ui-listing-grid-search.html

You should index data for the performance reasons. Indexing is a process of "materializing" complex data in needed scopes to avoid problems of reading it.

Index data can be always re-created from the original data using certain algorithm.

####Declarative markup

You can extend the current indexer declaration with an optional

element.

{% highlight XML%}

<title translate="true">Catalog Search</title> Rebuild Catalog product fulltext search index

    <saveHandler class="Magento\Framework\Indexer\SaveHandler\Grid" /><!-- optional --><!-- indexer put api -->
    <structure class="Magento\Framework\Indexer\GridStructure" /><!-- optional --><!-- creating flat table for index (or in other index database) -->
</indexer>
{% endhighlight %}

Where:

  • fieldset - container for field nodes, which specifies handler for processing nested field nodes.
  • field - concrete field processor.
  • filter - any optional pre-processing of data before getting to index.