1

The full-text search filter is not working for sales order grid. Other filters are working correctly for sales order grid.

enter image description here

3
  • 1
    check sales_order_grid table and make sure you have full text indexes for increment_id Feb 16, 2019 at 6:21
  • Thanks, I have added and it's working. Feb 16, 2019 at 6:46
  • Your welcome :), Let me add this as answer Feb 16, 2019 at 6:56

1 Answer 1

1

You need to check sales_order_grid table and make sure that you have full text index for increment_id field. If there is not any index for increment_id you need to add using below script.

if (version_compare($context->getVersion(), '1.0.4', '<')) {

        $table = $setup->getTable('sales_order_grid');

        $setup->getConnection()
            ->addIndex(
                $table,
                $setup->getIdxName(
                    $table,
                    ['increment_id'],
                    \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_FULLTEXT
                ),
                ['increment_id'],
                \Magento\Framework\DB\Adapter\AdapterInterface::INDEX_TYPE_FULLTEXT
            )
        ;
    }

You need to do this using UpgradeDta\Schema.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.