I have a search form that looks for a table of content for a site to reverse the relevant results.
I want to search the header and content fields and select the results in order of relevance. Giving the highest priority to the name.
Say we had a table (tblContent)
intID | strTitle | txtContent 1 | Smith John | Lorem Ipsum 2 | Lorem Ipsum | Lorem John Smith Ipsum 3 | John Smith | Lorem Ipsum Lorem Ipsum 4 | Lorem Ipsum | Lorem Ipsum Lorem Ipsum 5 | Lorem Ipsum | Lorem Ipsum Smith John
And you searched for "John Smith", the results should return in order of 3.2.1.5
How is this possible?
Fraser
source share