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.08k stars 292 forks source link

In-depth Instructions #311

Open s22-tech opened 7 months ago

s22-tech commented 7 months ago

Are there in-depth instructions on how to set up TNT Search? Like how to use sqlite instead of MySQL? Also, where do we find the SQL for creating the db's we need to run this? I'm wanting to index a static site. The tutorials are written for people using Laravel.

Thanks.

ultrono commented 7 months ago

There's a lot about it online and the tutorial are not written for Laravel. The read me in this very repository gives you everything you need for use without Laravel - https://github.com/teamtnt/tntsearch/blob/master/README.md. Have you read that?

SQLite is the default used for your search index (see read me).

Also, where do we find the SQL for creating the db's we need to run this

I'd really recommend you read the documentation as that question says you haven't viewed the read me. If using the raw package you'd follow the read me to create an index. The data for your search can come from a MySQL database, an external website or anywhere to be honest. If you're wishing to index a MySQL database you'd run a query to fetch relevant users for example and then follow the read me instructions to add a record to your index.