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

jaydeluca's avatar

When to run import for Scout (with TntSearch)

I am using Tntsearch with scout, and I'm wondering what the best practice is for handling the index file, version control, and when to run the import.

My thoughts are to gitignore the index files, and then include the import command (php artisan tntsearch:import App\Model) in my deploy script? Or would it be better to just run it once manually?

0 likes
1 reply
AlexG834's avatar

Did you find an answer to this? My dataset is >50k entries and takes a long time to index, however isn't likely to change. I assume doing it once and leaving it would be the best approach?

Please or to participate in this conversation.