Spring Data Solr

org.springframework.data.solr.core.query
Class Crotch

java.lang.Object
  extended by org.springframework.data.solr.core.query.Node
      extended by org.springframework.data.solr.core.query.Criteria
          extended by org.springframework.data.solr.core.query.Crotch

public class Crotch
extends Criteria

Since:
1.2
Author:
Christoph Strobl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.springframework.data.solr.core.query.Criteria
Criteria.OperationKey, Criteria.Predicate
 
Field Summary
 
Fields inherited from class org.springframework.data.solr.core.query.Criteria
CRITERIA_VALUE_SEPERATOR, WILDCARD
 
Method Summary
 Crotch and(Node part)
          Combine two Nodes using and.
 Crotch and(String fieldname)
          Combine node with new Node for given fieldname using and.
 Crotch between(Object lowerBound, Object upperBound)
          Crates new Criteria.Predicate for RANGE [lowerBound TO upperBound]
 Crotch between(Object lowerBound, Object upperBound, boolean includeLowerBound, boolean includeUpperBound)
          Crates new Criteria.Predicate for RANGE [lowerBound TO upperBound]
 Crotch boost(float boost)
          Boost positive hit with given factor. eg. ^2.3
 Crotch contains(Iterable<String> values)
          Crates new Criteria.Predicate with leading and trailing wildcards for each entry
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.
 Crotch contains(String... values)
          Crates new Criteria.Predicate with leading and trailing wildcards for each entry
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.
 Crotch contains(String value)
          Crates new Criteria.Predicate with leading and trailing wildcards
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.
 Crotch endsWith(Iterable<String> values)
          Crates new Criteria.Predicate with leading wildcard for each entry
NOTE: mind your schema and execution times as leading wildcards may not be supported.
 Crotch endsWith(String... values)
          Crates new Criteria.Predicate with leading wildcard for each entry
NOTE: mind your schema and execution times as leading wildcards may not be supported.
 Crotch endsWith(String postfix)
          Crates new Criteria.Predicate with leading wildcard
NOTE: mind your schema and execution times as leading wildcards may not be supported.
 Crotch expression(String nativeSolrQueryExpression)
          Crates new Criteria.Predicate allowing native solr expressions
 Crotch function(Function function)
          Creates Criteria.Predicate for given Function.
 Crotch fuzzy(String value)
          Crates new Criteria.Predicate with trailing ~
 Crotch fuzzy(String values, float levenshteinDistance)
          Crates new Criteria.Predicate with trailing ~ followed by levensteinDistance
 Field getField()
          Target field
 Collection<Criteria> getSiblings()
           
 Crotch greaterThan(Object lowerBound)
          Crates new Criteria.Predicate for RANGE &#123;lowerBound TO *]
 Crotch greaterThanEqual(Object lowerBound)
          Crates new Criteria.Predicate for RANGE [lowerBound TO *]
 Crotch in(Iterable<?> values)
          Crates new Criteria.Predicate for multiple values (arg0 arg1 arg2 ...)
 Crotch in(Object... values)
          Crates new Criteria.Predicate for multiple values (arg0 arg1 arg2 ...)
 Crotch is(Iterable<?> values)
          Creates new Criteria.Predicate without any wildcards for each entry
 Crotch is(Object... values)
          Crates new Criteria.Predicate without any wildcards for each entry
 Crotch is(Object o)
          Crates new Criteria.Predicate without any wildcards.
 Crotch isNotNull()
          Crates new Criteria.Predicate for {@code !
 Crotch isNull()
          Crates new Criteria.Predicate for null values
 Crotch lessThan(Object upperBound)
          Crates new Criteria.Predicate for RANGE [* TO upperBound&#125;
 Crotch lessThanEqual(Object upperBound)
          Crates new Criteria.Predicate for RANGE [* TO upperBound]
 Crotch near(org.springframework.data.geo.Box box)
          Creates new Criteria.Predicate for {@code !
 Crotch near(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
          Creates new Criteria.Predicate for {@code !
 Crotch not()
          Negates current criteria usinng - operator
 Crotch or(Node part)
          Combine two Nodes using or.
 Crotch or(String fieldname)
          Combine node with new Node for given fieldname using and.
 Crotch sloppy(String phrase, int distance)
          Crates new Criteria.Predicate with trailing ~ followed by distance
 Crotch startsWith(Iterable<String> values)
          Crates new Criteria.Predicate with trailing wildcard for each entry
 Crotch startsWith(String... values)
          Crates new Criteria.Predicate with trailing wildcard for each entry
 Crotch startsWith(String prefix)
          Crates new Criteria.Predicate with trailing wildcard
NOTE: Strings will not be automatically split on whitespace.
 String toString()
           
 Crotch within(org.springframework.data.geo.Point location, org.springframework.data.geo.Distance distance)
          Creates new Criteria.Predicate for {@code !
 
Methods inherited from class org.springframework.data.solr.core.query.Criteria
getBoost, getPredicates, isNegating, near, where, where, where, within
 
Methods inherited from class org.springframework.data.solr.core.query.Node
getParent, hasSiblings, isOr, isRoot, setParent, setPartIsOr
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getField

public Field getField()
Description copied from class: Criteria
Target field

Overrides:
getField in class Criteria
Returns:
null if not set

is

public Crotch is(Object o)
Description copied from class: Criteria
Crates new Criteria.Predicate without any wildcards. Strings with blanks will be escaped "string\ with\ blank"

Overrides:
is in class Criteria

boost

public Crotch boost(float boost)
Description copied from class: Criteria
Boost positive hit with given factor. eg. ^2.3

Overrides:
boost in class Criteria

not

public Crotch not()
Description copied from class: Criteria
Negates current criteria usinng - operator

Overrides:
not in class Criteria

endsWith

public Crotch endsWith(String postfix)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading wildcard
NOTE: mind your schema and execution times as leading wildcards may not be supported. NOTE: Strings will not be automatically split on whitespace.

Overrides:
endsWith in class Criteria

startsWith

public Crotch startsWith(String prefix)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing wildcard
NOTE: Strings will not be automatically split on whitespace.

Overrides:
startsWith in class Criteria

contains

public Crotch contains(String value)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading and trailing wildcards
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. NOTE: Strings will not be automatically split on whitespace.

Overrides:
contains in class Criteria

is

public Crotch is(Object... values)
Description copied from class: Criteria
Crates new Criteria.Predicate without any wildcards for each entry

Overrides:
is in class Criteria

is

public Crotch is(Iterable<?> values)
Description copied from class: Criteria
Creates new Criteria.Predicate without any wildcards for each entry

Overrides:
is in class Criteria

isNull

public Crotch isNull()
Description copied from class: Criteria
Crates new Criteria.Predicate for null values

Overrides:
isNull in class Criteria

isNotNull

public Crotch isNotNull()
Description copied from class: Criteria
Crates new Criteria.Predicate for !null values

Overrides:
isNotNull in class Criteria

contains

public Crotch contains(String... values)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading and trailing wildcards for each entry
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.

Overrides:
contains in class Criteria

contains

public Crotch contains(Iterable<String> values)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading and trailing wildcards for each entry
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow.

Overrides:
contains in class Criteria

startsWith

public Crotch startsWith(String... values)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing wildcard for each entry

Overrides:
startsWith in class Criteria

startsWith

public Crotch startsWith(Iterable<String> values)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing wildcard for each entry

Overrides:
startsWith in class Criteria

endsWith

public Crotch endsWith(String... values)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading wildcard for each entry
NOTE: mind your schema and execution times as leading wildcards may not be supported.

Overrides:
endsWith in class Criteria

endsWith

public Crotch endsWith(Iterable<String> values)
Description copied from class: Criteria
Crates new Criteria.Predicate with leading wildcard for each entry
NOTE: mind your schema and execution times as leading wildcards may not be supported.

Overrides:
endsWith in class Criteria

fuzzy

public Crotch fuzzy(String value)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing ~

Overrides:
fuzzy in class Criteria

fuzzy

public Crotch fuzzy(String values,
                    float levenshteinDistance)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing ~ followed by levensteinDistance

Overrides:
fuzzy in class Criteria

sloppy

public Crotch sloppy(String phrase,
                     int distance)
Description copied from class: Criteria
Crates new Criteria.Predicate with trailing ~ followed by distance

Overrides:
sloppy in class Criteria

expression

public Crotch expression(String nativeSolrQueryExpression)
Description copied from class: Criteria
Crates new Criteria.Predicate allowing native solr expressions

Overrides:
expression in class Criteria

between

public Crotch between(Object lowerBound,
                      Object upperBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE [lowerBound TO upperBound]

Overrides:
between in class Criteria

between

public Crotch between(Object lowerBound,
                      Object upperBound,
                      boolean includeLowerBound,
                      boolean includeUpperBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE [lowerBound TO upperBound]

Overrides:
between in class Criteria

lessThan

public Crotch lessThan(Object upperBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE [* TO upperBound&#125;

Overrides:
lessThan in class Criteria

lessThanEqual

public Crotch lessThanEqual(Object upperBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE [* TO upperBound]

Overrides:
lessThanEqual in class Criteria

greaterThan

public Crotch greaterThan(Object lowerBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE &#123;lowerBound TO *]

Overrides:
greaterThan in class Criteria

greaterThanEqual

public Crotch greaterThanEqual(Object lowerBound)
Description copied from class: Criteria
Crates new Criteria.Predicate for RANGE [lowerBound TO *]

Overrides:
greaterThanEqual in class Criteria

in

public Crotch in(Object... values)
Description copied from class: Criteria
Crates new Criteria.Predicate for multiple values (arg0 arg1 arg2 ...)

Overrides:
in in class Criteria

in

public Crotch in(Iterable<?> values)
Description copied from class: Criteria
Crates new Criteria.Predicate for multiple values (arg0 arg1 arg2 ...)

Overrides:
in in class Criteria
Parameters:
values - the collection containing the values to match against

within

public Crotch within(org.springframework.data.geo.Point location,
                     org.springframework.data.geo.Distance distance)
Description copied from class: Criteria
Creates new Criteria.Predicate for !geodist

Overrides:
within in class Criteria
Parameters:
location - Point in degrees

near

public Crotch near(org.springframework.data.geo.Box box)
Description copied from class: Criteria
Creates new Criteria.Predicate for !bbox with exact coordinates

Overrides:
near in class Criteria

near

public Crotch near(org.springframework.data.geo.Point location,
                   org.springframework.data.geo.Distance distance)
Description copied from class: Criteria
Creates new Criteria.Predicate for !bbox for a specified distance. The difference between this and within is this is approximate while within is exact.

Overrides:
near in class Criteria

function

public Crotch function(Function function)
Description copied from class: Criteria
Creates Criteria.Predicate for given Function.

Overrides:
function in class Criteria
Parameters:
function - must not be null

toString

public String toString()
Overrides:
toString in class Criteria

getSiblings

public Collection<Criteria> getSiblings()
Overrides:
getSiblings in class Node
Returns:
empty collection if Node does not have siblings.

and

public Crotch and(Node part)
Description copied from class: Node
Combine two Nodes using and.

Overrides:
and in class Criteria
Returns:

or

public Crotch or(Node part)
Description copied from class: Node
Combine two Nodes using or.

Overrides:
or in class Criteria
Returns:

and

public Crotch and(String fieldname)
Description copied from class: Node
Combine node with new Node for given fieldname using and.

Overrides:
and in class Criteria
Returns:

or

public Crotch or(String fieldname)
Description copied from class: Node
Combine node with new Node for given fieldname using and.

Overrides:
or in class Criteria
Returns:

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal Software, Inc.. All Rights Reserved.