public static final class Engine.Index extends Engine.IndexingOperation
Engine.Operation.Origin, Engine.Operation.Type
Constructor and Description |
---|
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc) |
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc,
long version,
VersionType versionType,
Engine.Operation.Origin origin,
long startTime) |
Index(org.apache.lucene.index.Term uid,
ParsedDocument doc,
long version,
VersionType versionType,
Engine.Operation.Origin origin,
long startTime,
boolean canHaveDuplicates) |
Modifier and Type | Method and Description |
---|---|
boolean |
execute(IndexShard shard)
Execute this operation against the provided
IndexShard and
return whether the document was created. |
Engine.Operation.Type |
opType() |
canHaveDuplicates, docs, endTime, endTime, getTranslogLocation, id, origin, parent, parsedDoc, routing, setTranslogLocation, source, startTime, timestamp, ttl, type, uid, updateVersion, version, versionType
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime, boolean canHaveDuplicates)
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc, long version, VersionType versionType, Engine.Operation.Origin origin, long startTime)
public Index(org.apache.lucene.index.Term uid, ParsedDocument doc)
public Engine.Operation.Type opType()
public boolean execute(IndexShard shard)
Engine.IndexingOperation
IndexShard
and
return whether the document was created.execute
in class Engine.IndexingOperation
Copyright © 2009–2016. All rights reserved.