title: Sphinx search relevance issue
body: <p>I have indexed following column from movie table: <code>movie_name</code>, <code>languages</code> (as text). I also have <code>popularity</code> column as <strong>attribute</strong> So basically an example record looks like:</p>
  
  <pre><code>movie_name: "The French Kiss"
  languages: "English French"
  </code></pre>
  
  <p>What I want to do is search movies which have French and English language, sort them according to relevance (so movies containing both languages will be ranked higher) and then popularity. I am using Thinking Sphinx gem, but basically my query looks like:</p>
  
  <pre><code>'@languages "French English"', order: "@relevance DESC, popularity DESC"
  </code></pre>
  
  <p>Now the problem is movies having <strong>French</strong> in language as well as movie name are ranked higher, even though they have less popularity. Now I understand this happens since there two occurences of "French" in the movie document, in movie_name and languages.</p>
  
  <p>I have tried changing the ranking algorithm to bm25 (which does not take keyword occurences in consideration), but it still returns the same result.</p>
  
  <p>How can I change the query so that it returns movies matching both "French and English" language first, sorted based on popularity and then only French and only English. Any help would be appreciated. Thanks!</p>