@StableMinor(version="12.4", sinceVersion="11.1") public interface IDocumentPopularityProvider
standard documents
.Modifier and Type | Interface and Description |
---|---|
static class |
IDocumentPopularityProvider.DocumentPopularityKey
Represents a key for
popularities map . |
Modifier and Type | Method and Description |
---|---|
Map<IDocumentPopularityProvider.DocumentPopularityKey,Double> |
calculateDocumentPopularities()
Returns a list of documents popularities.
|
double |
calculateDocumentPopularity(StandardDocument document)
Returns the popularity for the given document.
|
Map<IDocumentPopularityProvider.DocumentPopularityKey,Double> calculateDocumentPopularities() throws PortalException, TransactionRequiredException
standard document's item identifier
, used as the entry's key; and a double
value, used as the document's popularity.
finite
number.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.TransactionRequiredException
- if there's no active transaction.PortalException
- if some error occur during calculation.double calculateDocumentPopularity(StandardDocument document) throws PortalException, TransactionRequiredException, IllegalArgumentException
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.document
- the document.IllegalArgumentException
- if the given document is null
.TransactionRequiredException
- if there's no active transaction.PortalException
- if some error occur during calculation.LumisXP 12.4.0.200625 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.