Class LuceneDocument

org.elasticsearch.index.mapper.LuceneDocument
All Implemented Interfaces:
<org.apache.lucene.index.IndexableField>

public class LuceneDocument extends implements <org.apache.lucene.index.IndexableField>
Fork of Document with additional functionality.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    add​(org.apache.lucene.index.IndexableField field)
     
    void
    <? extends org.apache.lucene.index.IndexableField> fields)
     
    void
     key, org.apache.lucene.index.IndexableField field)
    Add fields so that they can later be fetched using getByKey(Object).
     name)
     
    org.apache.lucene.util.BytesRef
     name)
     
    org.apache.lucene.index.IndexableField
     key)
    Get back fields that have been previously added with addWithKey(Object, IndexableField).
    org.apache.lucene.index.IndexableField
     name)
     
    <org.apache.lucene.index.IndexableField>
     
    org.apache.lucene.index.IndexableField[]
     name)
     
    Return the parent document, or null if this is the root document.
    Return the path associated with this document.
    Return a prefix that all fields in this document should have.
    <org.apache.lucene.index.IndexableField>
     

    Methods inherited from class java.lang.

    , , , , , , , , , ,

    Methods inherited from interface java.lang.

    ,
  • Constructor Details

    • LuceneDocument

      public LuceneDocument()
  • Method Details

    • getPath

      public  getPath()
      Return the path associated with this document.
    • getPrefix

      public  getPrefix()
      Return a prefix that all fields in this document should have.
    • getParent

      public LuceneDocument getParent()
      Return the parent document, or null if this is the root document.
    • iterator

      public <org.apache.lucene.index.IndexableField> iterator()
      Specified by:
       in interface <org.apache.lucene.index.IndexableField>
    • getFields

      public <org.apache.lucene.index.IndexableField> getFields()
    • addAll

      public void addAll(<? extends org.apache.lucene.index.IndexableField> fields)
    • add

      public void add(org.apache.lucene.index.IndexableField field)
    • addWithKey

      public void addWithKey( key, org.apache.lucene.index.IndexableField field)
      Add fields so that they can later be fetched using getByKey(Object).
    • getByKey

      public org.apache.lucene.index.IndexableField getByKey( key)
      Get back fields that have been previously added with addWithKey(Object, IndexableField).
    • getFields

      public org.apache.lucene.index.IndexableField[] getFields( name)
    • getField

      public org.apache.lucene.index.IndexableField getField( name)
    • get

      public  get( name)
    • getBinaryValue

      public org.apache.lucene.util.BytesRef getBinaryValue( name)