|
If the db type is "MyISAM" you can set up indexes. To set up an index the fields to be used can be varchar or text type fields. The total length of an index field is 255.
So, lets say you're going to build an index called for_search and in it you'll use
`location`
`ID`
`city`
You can assign value length of the field as 85 for each of these in the index `for_search`
I have indexes set up on mine too because I have a search used on my directory and the fields included in the index are the site title, description, and keywords.
Then when a search is performed using my search script it uses the search index I have assigned those fields to. Then based on the information it dynamically pulls the categories, size, index date, etc., to display in the SERP along with the site title, description, and so forth.
Then I took it a step further and added an algorithm to determine relevance based on the factors stated above. Next to each return in the SERP a relevance factor is displayed.
Hope this helps.
|