I know one of them is creation and the other one is update.
I really want to distinguish the two. So I got the timing of creation and update like below
- Code: Select all
public void set(final String name, final Object value,
final Document document, final LuceneOptions _opts) {
if (value instanceof Image) {
final Image i = (Image) value;
Long update = i.getDetails().getUpdateEvent().getTime().getTime();
Long creation = i.getDetails().getCreationEvent().getTime().getTime();
but those two (update and creation) are the same.
from the java bridge code, how can i know whether it is called for creation or update?
bk