doc.add(new TextField("full", getReader(src.getStream())));
String fullpath = doc.get("fullpath");
if (fullpath != null && ctags != null) {
defs = ctags.doCtags(fullpath + "\n");
if (defs != null && defs.numberOfSymbols() > 0) {
doc.add(new TextField("defs", new IteratorReader(defs.getSymbols())));
doc.add(new TextField("refs", getReader(src.getStream())));
byte[] tags = defs.serialize();
doc.add(new StoredField("tags", tags));
}
}