java.lang.Object | |
↳ | com.atlassian.confluence.search.v2.lucene.boosting.BoostByModificationDateStrategy |
A BoostingStrategy
that boost the scores based on the modification date of scored document. Recently modified
Document get a higher boost.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Apply a relevant boost to the specified document with the specified score. | |||||||||||
Apply a relevant boost to the specified document with the specified score. | |||||||||||
Apply a relevant boost to the specified document with the specified score. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.confluence.search.v2.lucene.boosting.BoostingStrategy
|
Apply a relevant boost to the specified document with the specified score. Returning a score of 0 will remove the document from the results.
Warning: This method needs to return extremely fast, so any I/O like using the index reader to load the actual document is discouraged. If you need access to a documents field values you should rather consider using a FieldCache instead.
reader | a reader instance associated with the current scoring process |
---|---|
params | extra state information used by more complex boosting strategies |
doc | the doc id |
score | the original score for the document specified by doc |
score to make no change to the score
IOException |
---|
Apply a relevant boost to the specified document with the specified score. Returning a score of 0 will remove the document from the results.
Warning: This method needs to return extremely fast, so any I/O like using the index reader to load the actual document is discouraged. If you need access to a documents field values you should rather consider using a FieldCache instead.
If you are implementing this method but do not use the searchQueryParameters
, it is safe to delegate
directly to the boost(IndexReader, int, float)
method.
reader | a reader instance associated with the current scoring process |
---|---|
searchQueryParameters | extra state information used by more complex boosting strategies |
doc | the doc id |
score | the original score for the document specified by doc, or score to make no change to the score |
IOException |
---|
Apply a relevant boost to the specified document with the specified score. Returning a score of 0 will remove the document from the results.
Warning: This method needs to return extremely fast, so any I/O like using the index reader to load the actual document is discouraged. If you need access to a documents field values you should rather consider using a FieldCache instead.
reader | a reader instance associated with the current scoring process |
---|---|
doc | the doc id |
score | the original score for the document specified by doc |
score to make no change to the score
IOException |
---|