@override Document apply(Document doc) { if(doc.get(selector) < value) doc.set(selector, value); return doc; }