[eluser]Kemik[/eluser]
I've been thinking of the best way to create a search feature for my site and have come up with a few options.
1. Search the news titles for input from text field using $this->db->like();
E.g. search for "playstation 3". However, this means the titles would have to contain the exact string playstation 3. It wouldn't find "Sony released version 3 of their PlayStation line today".
2. Explode the input and use a foreach or_like for each additional term. This would fix the above issue but won't give as accurate results as 1.
How do you guys tackle search features?
Thanks.