lucene 4: fix TTL

This commit is contained in:
Igor Motov 2012-11-06 12:05:14 -05:00 committed by Shay Banon
parent c2f3eab7d3
commit c46228254d
1 changed files with 1 additions and 1 deletions

View File

@ -236,7 +236,7 @@ public class IndicesTTLService extends AbstractLifecycleComponent<IndicesTTLServ
public void collect(int doc) {
try {
UidAndRoutingFieldVisitor fieldVisitor = new UidAndRoutingFieldVisitor();
context.reader().document(doc, new UidAndRoutingFieldVisitor());
context.reader().document(doc, fieldVisitor);
String uid = fieldVisitor.uid();
long version = UidField.loadVersion(context, new Term(UidFieldMapper.NAME, uid));
docsToPurge.add(new DocToPurge(Uid.typeFromUid(uid), Uid.idFromUid(uid), version, fieldVisitor.routing()));