Class LuceneDocument

java.lang.Object
com.atlassian.jira.search.lucene.LuceneDocument
All Implemented Interfaces:
Document

@Deprecated(since="10.4", forRemoval=true) public class LuceneDocument extends Object implements Document
Deprecated, for removal: This API element is subject to removal in a future version.
since 10.4, Lucene support is deprecated. No replacement.
A Document implementation that is backed by a Lucene document.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LuceneDocument(org.apache.lucene.document.Document luceneDoc)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    getDate(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves a date (date and time, support for time-zone).
    getDates(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves dates (date and time, support for time-zone).
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getLocalDate(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves a local date (date only, time-zone independent)
    getLocalDates(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Retrieves local dates (date only, time-zone independent)
    org.apache.lucene.document.Document
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getNumber(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getNumbers(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getString(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    getStrings(String fieldName)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.jira.search.Document

    get, getValue, getValues
  • Constructor Details

    • LuceneDocument

      public LuceneDocument(org.apache.lucene.document.Document luceneDoc)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getLuceneDocument

      public org.apache.lucene.document.Document getLuceneDocument()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getId

      public String getId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getId in interface Document
      Returns:
      the document ID
    • getFieldNames

      public Collection<String> getFieldNames()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getFieldNames in interface Document
    • getDate

      public Optional<Date> getDate(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Document
      Retrieves a date (date and time, support for time-zone).
      Specified by:
      getDate in interface Document
      Parameters:
      fieldName - the name of the field
      Returns:
      a date
    • getDates

      public List<Date> getDates(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Document
      Retrieves dates (date and time, support for time-zone).
      Specified by:
      getDates in interface Document
      Parameters:
      fieldName - the name of the field
      Returns:
      dates
    • getLocalDate

      public Optional<LocalDate> getLocalDate(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Document
      Retrieves a local date (date only, time-zone independent)
      Specified by:
      getLocalDate in interface Document
      Parameters:
      fieldName - the name of the field
      Returns:
      a local date
    • getLocalDates

      public List<LocalDate> getLocalDates(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Document
      Retrieves local dates (date only, time-zone independent)
      Specified by:
      getLocalDates in interface Document
      Parameters:
      fieldName - the name of the field
      Returns:
      local dates
    • getString

      public Optional<String> getString(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getString in interface Document
    • getStrings

      public List<String> getStrings(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getStrings in interface Document
    • getNumbers

      public List<Number> getNumbers(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNumbers in interface Document
    • getNumber

      public Optional<Number> getNumber(String fieldName)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      getNumber in interface Document