Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
3.0.2
-
New, Patch Available
Description
Working with Document Fieldables is often a pain.
getting the ith involves chained method calls and is not very readable:
// nice doc.getFieldable(i); // not nice doc.getFields().get(i);
also, when combining documents, or otherwise aggregating multiple fields into a single document,
// nice doc.addAll(fieldables); // note nice: less readable and more error prone List<Fieldable> fields = ...; for (Fieldable field : fields) { result.add(field); }