List of usage examples for org.springframework.data.solr.core.query Crotch setParent
protected void setParent(@Nullable Node parent)
From source file:org.springframework.data.solr.core.query.Criteria.java
@SuppressWarnings("unchecked") @Override//from w w w. j ava2 s .c o m public Crotch and(Node node) { if (!(node instanceof Criteria)) { throw new IllegalArgumentException("Can only add instances of Criteria"); } Crotch crotch = new Crotch(); crotch.setParent(this.getParent()); crotch.add(this); crotch.add((Criteria) node); return crotch; }
From source file:org.springframework.data.solr.core.query.Criteria.java
@SuppressWarnings("unchecked") public Crotch or(Node node) { if (!(node instanceof Criteria)) { throw new IllegalArgumentException("Can only add instances of Criteria"); }//w w w.j a v a 2 s .c o m node.setPartIsOr(true); Crotch crotch = new Crotch(); crotch.setParent(this.getParent()); crotch.add(this); crotch.add((Criteria) node); return crotch; }