I have an error that I can’t seem to figure out. Anyone has an idea what I’m doing wrong here? Please assume that images has place, subject, description, and testing appears several times in subject or place or description. Also, I did set the ConText initialization parameter TEXT_ENABLE to be true.
SELECT 4*SCORE(1) + 2*SCORE(2) + SCORE(3) AS RANK
FROM images i
WHERE CONTAINS(i.subject, 'testing', 1)>0
OR CONTAINS(i.place, 'testing', 2)>0
OR CONTAINS(i.description, 'testing', 3)>0
ORDER BY RANK;
I manged to solve the problem by surrounding the current query with another query and pulling the ORDER BY RANK to the outside query. Like so: