Example usage for org.springframework.data.solr.core.query Crotch setNegating

List of usage examples for org.springframework.data.solr.core.query Crotch setNegating

Introduction

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

Prototype

protected void setNegating(boolean negating) 

Source Link

Usage

From source file:org.springframework.data.solr.core.query.Criteria.java

/**
 * Explicitly wrap {@link Criteria} inside not operation.
 * //from   ww  w.j a  v  a2s  . co  m
 * @since 1.4
 * @return
 */
public Criteria notOperator() {

    Crotch c = new Crotch();
    c.setNegating(true);
    c.add(this);

    return c;
}