Example usage for org.springframework.data.solr.core.query Node setPartIsOr

List of usage examples for org.springframework.data.solr.core.query Node setPartIsOr

Introduction

In this page you can find the example usage for org.springframework.data.solr.core.query Node setPartIsOr.

Prototype

public void setPartIsOr(boolean isOr) 

Source Link

Document

Define or nature of Node

Usage

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;
}