1

How to make my search bar work in my custom grid module? I have added the search field by inserting this code <filterSearch name="fulltext"/> inside my <listingToolbar name="listing_top"> tag.

The search field have been displayed but it's not working, what should I do?

1

fulltext search only work if you have add index in your database table. to add Index in your table use below code.

$setup->getConnection()->addIndex(
    $setup->getTable('quote_id_mask'),
    $setup->getIdxName('quote_id_mask', ['masked_id']),
    ['masked_id']
);

Reference

| 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.