We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 722438d commit 72a8cbeCopy full SHA for 72a8cbe
src/main/java/com/arangodb/entity/InvertedIndexField.java
@@ -18,7 +18,7 @@ public class InvertedIndexField implements Entity {
18
private Boolean searchField;
19
private Boolean trackListPositions;
20
private final Set<AnalyzerFeature> features = new HashSet<>();
21
- private final Collection<InvertedIndexField> nested = new ArrayList<>();
+ private Collection<InvertedIndexField> nested;
22
23
public String getName() {
24
return name;
@@ -79,6 +79,7 @@ public Collection<InvertedIndexField> getNested() {
79
}
80
81
public InvertedIndexField nested(InvertedIndexField... nested) {
82
+ if(this.nested == null) this.nested = new ArrayList<>();
83
Collections.addAll(this.nested, nested);
84
return this;
85
0 commit comments