magento 2.3.4 reindex catalogsearch fulltext remove tables code example
Example 1: magento 2 reindex
php bin/magento indexer:reindex
Example 2: set indexer mode command line magento 2
bin/magento indexer:set-mode {realtime|schedule} [indexer]
php bin/magento indexer:reindex
bin/magento indexer:set-mode {realtime|schedule} [indexer]