title: relevance search in Solr
body: <p>I am using DSE5.0.2 version and Solr ( integrated with dse) . I have to do relevance search using solr on the below tables/ data .</p>
  
  <p>I have a table in cassandra on which we have created a solr core - </p>
  
  <pre><code>CREATE TABLE fullsearch (
      launchedtime bigint,
      hashtag text,
      solr_query text,
      PRIMARY KEY (launchedtime))
  </code></pre>
  
  <p>Now we have created a solr core and searching on the field hashtag . but i want those result which contains max no of hashtag i am searching .
  for ex : -
  if data in cassandra is -</p>
  
  <pre><code>launchedtime   hashtag    solr_query
  
  1234567        a,b,c        Null
  
  1234568        a,d          Null
  
  1234569        a,c          Null
  </code></pre>
  
  <p>and I want to search all the hash tags that contains either a or c then mine solr query for searching is </p>
  
  <pre><code>cqlsh:keyspace&gt; select * FROM fullsearch  WHERE solr_query='{"q":"hashtag:(a OR c)"}' ;
  </code></pre>
  
  <p>Then I want result that</p>
  
  <p>1 and 2 row to occur first and then the third row . i.e Result </p>
  
  <pre><code>a,b,c
  
  a,c
  
  a,d
  </code></pre>