teamtnt / tntsearch

A fully featured full text search engine written in PHP
https://tnt.studio/solving-the-search-problem-with-laravel-and-tntsearch
MIT License
3.1k stars 291 forks source link

Question on automatic indexing #68

Closed rishabgarg closed 7 years ago

rishabgarg commented 7 years ago

I was able to setup tntsearch successfully but wasn't able to get automatic indexing work.

I was following this article http://tnt.studio/blog/searching-for-bobby-fisher-with-laravel-5 but I realized that the latest version of TnTSearch is different from what has been described in the article.

Are we still supposed to have the 4 static functions in our model class to get the automatic indexing work or is it a different process now.

nticaric commented 7 years ago

If you want to automate everything try to use the scout driver

https://github.com/teamtnt/laravel-scout-tntsearch-driver

and here's a tutorial on how to set it up

https://laravel-news.com/tntsearch-with-laravel-scout