This would probably work, but the approach has a subtle flaw.
If a query has one word that matches a lot of titles, but a
phrase that matches a description, the best result will be shown
far too low, after all the titles.
A better approach is to weight the titles a bit higher than the
description,
Hi,
Can we use the ranking as follows when searching the term'Java' present in
different fields as per the relevance scenarios mentioned in the previous
mail.
q= courseTitle:Java^1 AND courseTag:Java^1000 AND
courseDescription:Java^100; courseTitle asc, courseDescription asc,
courseTag as