| com.atlassian.confluence.search.contentnames.DocumentResultScores |
Known Indirect Subclasses
BitSetAwareDocumentResultScores,
FloatArrayDocumentResultScores,
OpenBitSetAwareDocumentResultScores
| |||||||||||||||||
Interface for storing, incrementing and iterating over document scores. Each document id is associated with one document score.
| Nested Classes | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| DocumentResultScores.Block | Callback interface to provide clients with the ability to run custom code against all document and score pairs maintained by this class. | ||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
Iterates through all docId and score pairs where the score is greater than zero and then executes the block
against each pair.
| |||||||||||
Retrieve the score for the specified docId.
| |||||||||||
Increase the score for the specified document by the supplied amount.
| |||||||||||
Multiply the score of the specified document by the supplied factor.
| |||||||||||
Override any existing score for the specified document and replace with the new supplied score.
| |||||||||||
Iterates through all docId and score pairs where the score is greater than zero and then executes the block against each pair.
| block | the block to run against each document id and score pair. |
|---|
Retrieve the score for the specified docId.
| docId | the document id |
|---|
Increase the score for the specified document by the supplied amount.
| docId | the document Id |
|---|---|
| increment | the amount to increase score by (must be greater than zero) |
| IllegalArgumentException | if increment is less than or equal to zero |
|---|
Multiply the score of the specified document by the supplied factor.
| docId | the document Id to change the score of |
|---|---|
| factor | the factor to multiple the document's current score by. |
Override any existing score for the specified document and replace with the new supplied score.
| docId | the document Id to set the score for. |
|---|---|
| score | the new score for this document. |

