I need to develop a search program for search specific content in the database. Then part of the matched content should be shown as a brief search result.
Here is my approaches to make the sub string for search results
- Do the database level sub string (MySQL)
- Do the sub string using PHP.
Search field contains more than 500 words (minimum). Content feed via CK Editor. There are 65k rows in the table and can be grow. This table contains 3 fields of strings values use for the search (content_title, short_description, detailed_description).
What is the most efficient method to do sub string?