Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

KarlHill69's avatar

Full text search in laravel

Hi I am following this tutorial https://bhimbho.medium.com/explore-fulltext-search-in-laravel-10-11-with-relations-c95a2a66b0cc

Now do I need to write full text index for all the relationship tables also, or just only in the main table?

any suggestion?

0 likes
3 replies
tisuchi's avatar
tisuchi
Best Answer
Level 70

@karlhill69

Now do I need to write full text index for all the relationship tables also, or just only in the main table?

If you are not only searching the products table, then other related tables like product_categories and product_types, it is indeed necessary to ensure that full-text indexes are created for all relevant columns across these tables.

3 likes

Please or to participate in this conversation.