IDF calculation in Elasticsearch 7.0

Hi,

I am unable to understand n and N that are being used to calculate IDF.

{
                          "value" : 1.1631508,
                          "description" : "idf, computed as log(1 + (N - n + 0.5) / (n + 0.5)) from:",
                          "details" : [
                            {
                              "value" : 2,
                              "description" : "n, number of documents containing term",
                              "details" : [ ]
                            },
                            {
                              "value" : 7,
                              "description" : "N, total number of documents with field",
                              "details" : [ ]
                            }
                          ]
                        }

Can someone clarify me what n and N are?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.