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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(org.apache.lucene.index.IndexableField field) voidvoidaddWithKey(Object key, org.apache.lucene.index.IndexableField field) Add fields so that they can later be fetched usinggetByKey(Object).org.apache.lucene.util.BytesRefgetBinaryValue(String name) org.apache.lucene.index.IndexableFieldGet back fields that have been previously added withaddWithKey(Object, IndexableField).org.apache.lucene.index.IndexableFieldList<org.apache.lucene.index.IndexableField> List<org.apache.lucene.index.IndexableField> getNumericValue(String name) 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()voidonlyAddKey(Object key, org.apache.lucene.index.IndexableField field) only add the key to the keyedFields, it don't add the field to the field listMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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). -
onlyAddKey
only add the key to the keyedFields, it don't add the field to the field list -
getByKey
Get back fields that have been previously added withaddWithKey(Object, IndexableField). -
getFields
-
getField
-
get
-
getBinaryValue
-
getNumericValue
-