Thanks Brin, your answer solved my problem.
Thanks Ivan to you too, I am having 5 shards, idf is getting calculated on 
the maxdocs present in that shard. Doesn't that leads to misleading idf?

On Tuesday, 11 February 2014 20:10:52 UTC+5:30, sunayana choudhary wrote:
>
>  Hi all,
>
> I have been analysing Elasticsearch results with explain:true condition, I 
> am not able to understand what  technique has been applied to calculate 
> idf. I went through the lucene scoring formula i.e.
>
>  idf(t)  =   1+log(NumDocs/Doc frequency+1)
>
> Does not matches my results.
> Following is explanation for one of the results returned.
>     _explanation: {
>         value: 5.8878393
>         description: weight(city:chicago in 1) [PerFieldSimilarity], 
> result of:
>         details: [
>             {
>                 value: 5.8878393
>                 description: score(doc=1,freq=1.0 = termFreq=1.0 ), 
> product of:
>                 details: [
>                     {
>                         value: 0.99999994
>                         description: queryWeight, product of:
>                         details: [
>                             {
>                                 value: 5.88784
>                                 description: idf(docFreq=2, maxDocs=398)
>                             }
>                             {
>                                 value: 0.16984157
>                                 description: queryNorm
>                             }
>                         ]
>                     }
>                     {
>                         value: 5.88784
>                         description: fieldWeight in 1, product of:
>                         details: [
>                             {
>                                 value: 1
>                                 description: tf(freq=1.0), with freq of:
>                                 details: [
>                                     {
>                                         value: 1
>                                         description: termFreq=1.0
>                                     }
>                                 ]
>                             }
>                             {
>                                 value: 5.88784
>                                 description: idf(docFreq=2, maxDocs=398)
>                             }
>                             {
>                                 value: 1
>                                 description: fieldNorm(doc=1)
>                             }
>                         ]
>                     }
>                 ]
>             }
>         ]
>     }
>
> }
>
> Thanks in advance.. :)
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elasticsearch+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/dc8907ed-59c5-4432-9472-b596e9e3a4ea%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to