java.lang.Object | |
↳ | com.atlassian.jira.util.LuceneUtils |
A simple utility class for our common Lucene usage methods.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Turns a given date-time (point in time) value into a String suitable for storing and searching in Lucene.
| |||||||||||
Turns a given
LocalDate value into a String suitable for storing and searching in Lucene. | |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class java.lang.Object |
Turns a given date-time (point in time) value into a String suitable for storing and searching in Lucene.
The date-time is stored as the number of seconds. If the date is null we store the encoded form of Long.MAX_VALUE which causes nulls to sort to the end. (This is traditional JIRA behaviour)
date | the date to be converted. May be null |
---|
Turns a given LocalDate
value into a String suitable for storing and searching in Lucene.
The date is stored as "YYYYMMDD". If the date is null we store "99999999" which causes nulls to sort to the end. (This is traditional JIRA behaviour)
localDate | the date to be converted. May be null |
---|