Package com.atlassian.jira.search
Interface Document
- All Known Implementing Classes:
LuceneDocument,OpenSearchDocument
@PublicApi
public interface Document
A document that is retrieved from the index via
IndexSearcher.- Since:
- 10.4
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> List<T> get(TypedField<T> field) Retrieves a date (date and time, support for time-zone).Retrieves dates (date and time, support for time-zone).getId()getLocalDate(String fieldName) Retrieves a local date (date only, time-zone independent)getLocalDates(String fieldName) Retrieves local dates (date only, time-zone independent)getNumbers(String fieldName) getStrings(String fieldName) default <T> Optional<T> getValue(FieldValueLoader<T> loader) default <T> List<T> getValues(FieldValueLoader<T> loader)
-
Method Details
-
getId
String getId()- Returns:
- the document ID
-
getFieldNames
Collection<String> getFieldNames() -
getDate
Retrieves a date (date and time, support for time-zone).- Parameters:
fieldName- the name of the field- Returns:
- a date
- Since:
- 11.0
-
getDates
Retrieves dates (date and time, support for time-zone).- Parameters:
fieldName- the name of the field- Returns:
- dates
- Since:
- 11.0
-
getLocalDate
Retrieves a local date (date only, time-zone independent)- Parameters:
fieldName- the name of the field- Returns:
- a local date
- Since:
- 11.0
-
getLocalDates
Retrieves local dates (date only, time-zone independent)- Parameters:
fieldName- the name of the field- Returns:
- local dates
- Since:
- 11.0
-
getString
-
getStrings
-
getNumber
-
getNumbers
-
get
-
getValue
-
getValues
-