List of usage examples for org.springframework.data.solr.core.query Node setPartIsOr
public void setPartIsOr(boolean isOr)
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 a2 s.co m*/ node.setPartIsOr(true); Crotch crotch = new Crotch(); crotch.setParent(this.getParent()); crotch.add(this); crotch.add((Criteria) node); return crotch; }