java.lang.Object
org.springframework.data.solr.core.query.Node
Direct Known Subclasses:
Criteria

public abstract class Node extends Object
Since:
1.2
  • Constructor Details

    • Node

      protected Node()
  • Method Details

    • setParent

      protected void setParent(@Nullable Node parent)
    • setPartIsOr

      public void setPartIsOr(boolean isOr)
      Define or nature of Node
      Parameters:
      isOr -
    • isRoot

      public boolean isRoot()
      Returns:
      true in case Node has no parent.
    • isOr

      public boolean isOr()
      Returns:
      true in case Node has or nature.
    • getParent

      @Nullable public Node getParent()
      Get parent Node.
      Returns:
      null in case no parent set.
    • hasSiblings

      public boolean hasSiblings()
      Returns:
      true if Node has siblings.
    • getSiblings

      public Collection<Criteria> getSiblings()
      Returns:
      empty collection if Node does not have siblings.
    • isNegating

      public boolean isNegating()
      Returns:
      true if not() criteria
      Since:
      1.4
    • setNegating

      protected void setNegating(boolean negating)
      Parameters:
      negating -
      Since:
      1.4
    • and

      public abstract <T extends Node> T and(Node part)
      Combine two Nodes using and.
      Parameters:
      part -
      Returns:
    • and

      public abstract <T extends Node> T and(String fieldname)
      Combine node with new Node for given fieldname using and.
      Returns:
    • or

      public abstract <T extends Node> T or(Node part)
      Combine two Nodes using or.
      Parameters:
      part -
      Returns:
    • or

      public abstract <T extends Node> T or(String fieldname)
      Combine node with new Node for given fieldname using and.
      Returns:
    • is

      public abstract Node is(Object value)
    • is

      public abstract Node is(Object... values)
    • is

      public abstract Node is(Iterable<?> values)
    • isNull

      public abstract Node isNull()
    • isNotNull

      public abstract Node isNotNull()
    • contains

      public abstract Node contains(String value)
    • contains

      public abstract Node contains(String... values)
    • contains

      public abstract Node contains(Iterable<String> values)
    • startsWith

      public abstract Node startsWith(String prefix)
    • startsWith

      public abstract Node startsWith(String... values)
    • startsWith

      public abstract Node startsWith(Iterable<String> values)
    • endsWith

      public abstract Node endsWith(String postfix)
    • endsWith

      public abstract Node endsWith(String... values)
    • endsWith

      public abstract Node endsWith(Iterable<String> values)
    • not

      public abstract Node not()
    • fuzzy

      public abstract Node fuzzy(String value)
    • fuzzy

      public abstract Node fuzzy(String values, float levenshteinDistance)
    • sloppy

      public abstract Node sloppy(String phrase, int distance)
    • expression

      public abstract Node expression(String nativeSolrQueryExpression)
    • boost

      public abstract Node boost(float value)
    • between

      public abstract Node between(Object lowerBound, Object upperBound)
    • between

      public abstract Node between(Object lowerBound, Object upperBound, boolean includeLowerBound, boolean includeUpperBound)
    • lessThan

      public abstract Node lessThan(Object upperBound)
    • lessThanEqual

      public abstract Node lessThanEqual(Object upperBound)
    • greaterThan

      public abstract Node greaterThan(Object lowerBound)
    • greaterThanEqual

      public abstract Node greaterThanEqual(Object lowerBound)
    • in

      public abstract Node in(Object... values)
    • in

      public abstract Node in(Iterable<?> values)
    • within

      public abstract Node within(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
    • near

      public abstract Node near(org.springframework.data.geo.Box box)
    • near

      public abstract Node near(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
    • function

      public abstract Node function(Function function)