Class OpenSearchDocument
java.lang.Object
com.atlassian.jira.search.opensearch.OpenSearchDocument
- All Implemented Interfaces:
Document
A Document implementation that is backed by an OpenSearch hit.
- Since:
- 10.4
-
Constructor Summary
ConstructorsConstructorDescriptionOpenSearchDocument(org.opensearch.client.opensearch.core.search.Hit<Void> hit) -
Method Summary
Modifier and TypeMethodDescriptionRetrieves a date (date and time, support for time-zone).Retrieves dates (date and time, support for time-zone).org.opensearch.client.opensearch.core.search.Hit<Void> getHit()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) toString()
-
Constructor Details
-
OpenSearchDocument
-
-
Method Details
-
getHit
-
getId
-
getFieldNames
- Specified by:
getFieldNamesin interfaceDocument
-
getDate
Description copied from interface:DocumentRetrieves a date (date and time, support for time-zone). -
getDates
Description copied from interface:DocumentRetrieves dates (date and time, support for time-zone). -
getLocalDate
Description copied from interface:DocumentRetrieves a local date (date only, time-zone independent)- Specified by:
getLocalDatein interfaceDocument- Parameters:
fieldName- the name of the field- Returns:
- a local date
-
getLocalDates
Description copied from interface:DocumentRetrieves local dates (date only, time-zone independent)- Specified by:
getLocalDatesin interfaceDocument- Parameters:
fieldName- the name of the field- Returns:
- local dates
-
getString
-
getStrings
- Specified by:
getStringsin interfaceDocument
-
getNumbers
- Specified by:
getNumbersin interfaceDocument
-
getNumber
-
toString
-