Are you saying that the more times the word appears, the more you want
it to score?

Note, add debugQuery=true to your query, and look near the end of the
output, you will be able to see exactly how the score was calculated and
thus which component wasn't behaving as you expected (you might want to
review this info alongside a Solr book or two, it is quite complex).

Looking at your example below, I suspect that all of your examples have
the same score, so are sorted randomly.

Upayavira

On Tue, Sep 24, 2013, at 01:38 PM, Viresh Modi wrote:
> Mu Query Looks Like:
> 
> start=0&rows=10&hl=true&hl.fl=content&qt=dismax
> &q=pookan
> &fl=id,application,timestamp,name,score,metaData,metaDataDate
> &fq=application:OnlineR3_6_4
> &fq=(metaData:channelId/101 OR metaData:channelId/104)
> &sort=score desc
> 
> 
> but not getting result as per desired
> <doc>
>      <str name="id">OnlineR3_6_4_101_7</str>
>      <str name="content">pookan pookan pookan</str>
> </doc>
> <doc>
>     <str name="id">OnlineR3_6_4_101_20</str>
>      <str name="content">pookan pookan pookan pookan pookan</str>
> </doc>
> <doc>
>      <str name="id">OnlineR3_6_4_101_19</str>
>      <str name="id">pookan pookan pookan pookan</str>
> </doc>
> <doc>
>       <str name="id">OnlineR3_6_4_101_21</str>
>      <str name="content">pookan pookan</str>
> </doc>
> 
> 
> Acutually i want particular word for that match max in content tag that
> come first (relevancy based)

Reply via email to