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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c19fe1ea-aba7-4296-9536-cffc25a26836%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to