if (evt == null) continue;
version = version == null ? evt.getVersion() : (_versionComparator.compare(version,
evt.getVersion()) < 0 ? evt.getVersion() : version);
// interpret and get get the indexable instance
ZoieIndexable indexable = evt.getData();
if (indexable == null || indexable.isSkip()) continue;
long uid = indexable.getUID();
delSet.add(uid);
addList.remove(uid);
if (!(indexable.isDeleted() || evt.isDelete())) // update event
{
try {
IndexingReq[] reqs = indexable.buildIndexingReqs();
for (IndexingReq req : reqs) {
if (req != null) // if doc is provided, interpret as
// a delete, e.g. update with
// nothing
{
Document doc = req.getDocument();
if (doc != null) {
ZoieSegmentReader.fillDocumentID(doc, uid);
if (indexable.isStorable()) {
byte[] bytes = indexable.getStoreValue();
if (bytes != null) {
doc.add(new StoredField(AbstractZoieIndexable.DOCUMENT_STORE_FIELD, bytes));
}
}
}