(self, searcher, fieldname, text)
return log(dc / (n + 1)) + 1
Returns the inverse document frequency of the given term.
Returns the inverse document frequency of the given term.
Returns the inverse document frequency of the given term .
def idf(self, searcher, fieldname, text):
        """Returns the inverse document frequency of the given term.
        """

        parent = searcher.get_parent()
        n = parent.doc_frequency(fieldname, text)
        dc = parent.doc_count_all()
        return log(dc / (n + 1)) + 1
def idf ( self , searcher , fieldname , text ) : parent = searcher . get_parent ( ) n = parent . doc_frequency ( fieldname , text ) dc = parent . doc_count_all ( ) return log ( dc / ( n + 1 ) ) + 1