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

  • 1
    check sales_order_grid table and make sure you have full text indexes for increment_id – Ramkishan Suthar Feb 16 '19 at 6:21
  • Thanks, I have added and it's working. – Emipro Technologies Pvt. Ltd. Feb 16 '19 at 6:46
  • Your welcome :), Let me add this as answer – Ramkishan Suthar Feb 16 '19 at 6:56
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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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