I have a couple large tables (77,055 records-79 megs & 111,240 records -69 megs & 20,542 records) that need to be searched by site visitors.
I was doing a (like \'%term%\' ) on the one table i\'m searching now but when I have to add the other tables in the mix I need something faster.
I was going to index all the words in the fields I want to search in one table(tableA (wordid,word)) then have tableB (id,wordid,recordid, appearences,tableid). i\'ll search tableA for matches to search terms, get the wordid, then search tableB for records matching wordid. Do some sort of rating, like number of search words that appear in a particular record or number of times a word appear as indicated by the appearances. not sure, gotta figure that part out exactly.
one of my concerns is that the index tables get really big, lots of records anyway. but i have to imagine that searching a field that only contains one word, as in: (word = \"$term\"); is much more efficient than searching a large text field, as in: (description like \"%$term%\").
anyway, i just wanted some feedback on this method. I haven\'t been able to find my sites that discuss search log as it would apply to my problem. figured this was my best source for info.
thanks, peace... :arrow: