protected internal virtual Document AddId(Document doc, string id) { doc.Add(new StringField("id", id, Field.Store.NO)); return doc; }