Interface IDocumentPopularityProvider

    • Method Detail

      • calculateDocumentPopularity

        double calculateDocumentPopularity​(StandardDocument document)
                                    throws PortalException,
                                           TransactionRequiredException,
                                           IllegalArgumentException
        Returns the popularity for the given document. The returned value must be a positive finite number. A popularity between 0 and 1 decrease the score the document would have during a search. A popularity of 1 does not alter the score the document would have during search. A popularity greater than 1 increase the score the document would have during search.

        Parameters:
        document - the document.
        Returns:
        the popularity for the given document.
        Throws:
        IllegalArgumentException - if the given document is null.
        TransactionRequiredException - if there's no active transaction.
        PortalException - if some error occur during calculation.
        Since:
        11.1.0