Package org.elasticsearch.index.mapper
Class LuceneDocument
java.lang.Object
org.elasticsearch.index.mapper.LuceneDocument
- All Implemented Interfaces:
Iterable<org.apache.lucene.index.IndexableField>
public class LuceneDocument
extends Object
implements Iterable<org.apache.lucene.index.IndexableField>
Fork of
Document
with additional functionality.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(org.apache.lucene.index.IndexableField field)
void
void
addWithKey(Object key, org.apache.lucene.index.IndexableField field)
Add fields so that they can later be fetched usinggetByKey(Object)
.org.apache.lucene.util.BytesRef
getBinaryValue(String name)
org.apache.lucene.index.IndexableField
Get back fields that have been previously added withaddWithKey(Object, IndexableField)
.org.apache.lucene.index.IndexableField
List<org.apache.lucene.index.IndexableField>
org.apache.lucene.index.IndexableField[]
Return the parent document, or null if this is the root document.getPath()
Return the path associated with this document.Return a prefix that all fields in this document should have.Iterator<org.apache.lucene.index.IndexableField>
iterator()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LuceneDocument
public LuceneDocument()
-
-
Method Details
-
getPath
Return the path associated with this document. -
getPrefix
Return a prefix that all fields in this document should have. -
getParent
Return the parent document, or null if this is the root document. -
iterator
-
getFields
-
addAll
-
add
public void add(org.apache.lucene.index.IndexableField field) -
addWithKey
Add fields so that they can later be fetched usinggetByKey(Object)
. -
getByKey
Get back fields that have been previously added withaddWithKey(Object, IndexableField)
. -
getFields
-
getField
-
get
-
getBinaryValue
-