public enum DocumentMode extends Enum<DocumentMode>
Enum Constant and Description |
---|
ADD
Add a document to the index.
|
CREATE
Create a document in the index.
|
DELETE
Delete a document from the index.
|
PARTIAL
Update a document, adding in fields, retaining values for fields not contained in update document.
|
PARTIAL_APPEND_VALUES
Update a document, uniquely appending values to multi-value fields.
|
PARTIAL_REMOVE_VALUES
Update a document, removing matching values from multi-value fields.
|
Modifier and Type | Method and Description |
---|---|
static DocumentMode |
fromExternal(String value)
Converts an external value to a DocumentMode value.
|
static DocumentMode |
fromOrdinal(int value) |
static DocumentMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DocumentMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DocumentMode ADD
public static final DocumentMode DELETE
public static final DocumentMode PARTIAL
The exact semantics are engine dependent as some may only work on real time fields while others may work on any field in the document.
public static final DocumentMode PARTIAL_APPEND_VALUES
NOTE: This operation will only affect multi-value fields. Any updates to single value fields will be ignored.
public static final DocumentMode PARTIAL_REMOVE_VALUES
Fields in this update act as a blacklist, filtering multi-value fields in the previously indexed document.
NOTE: This operation will only affect multi-value fields. Any updates to single value fields will be ignored.
public static final DocumentMode CREATE
This document mode should only be used during an initial feed of the index or in situations where the same document will never be feed twice. If the same document is added with this mode twice, the document will occur in the index twice.
public static DocumentMode[] values()
for (DocumentMode c : DocumentMode.values()) System.out.println(c);
public static DocumentMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static DocumentMode fromExternal(String value)
value
- the external valuepublic static DocumentMode fromOrdinal(int value)
Copyright © 2018 Attivio, Inc. All Rights Reserved.
PATENT NOTICE: Attivio, Inc. Software Related Patents. With respect to the Attivio software product(s) being used, the following patents apply: Querying Joined Data Within A Search Engine Index: United States Patent No.(s): 8,073,840. Ordered Processing of Groups of Messages: U.S. Patent No.(s) 8,495,656. Signal processing approach to sentiment analysis for entities in documents: U.S. Patent No.(s) 8,725,494. Other U.S. and International Patents Pending.