Package | Description |
---|---|
org.springframework.data.solr.core |
Provides the classes necessary for Solr support.
|
org.springframework.data.solr.core.query |
Modifier and Type | Method and Description |
---|---|
protected String |
QueryParser.createQueryFragmentForCriteria(Criteria chainedCriteria) |
Modifier and Type | Class and Description |
---|---|
class |
SimpleStringCriteria
The most basic criteria holding an already formatted QueryString that can be executed 'as is' against the solr server
|
Modifier and Type | Method and Description |
---|---|
Criteria |
Criteria.and(Criteria... criterias)
Chain using
AND |
Criteria |
Criteria.and(Criteria criteria)
Chain using
AND |
Criteria |
Criteria.and(Field field)
Chain using
AND |
Criteria |
Criteria.and(String fieldname)
Chain using
AND |
Criteria |
Criteria.between(Object lowerBound,
Object upperBound)
Crates new CriteriaEntry for
RANGE [lowerBound TO upperBound] |
Criteria |
Criteria.between(Object lowerBound,
Object upperBound,
boolean includeLowerBound,
boolean includeUppderBound)
Crates new CriteriaEntry for
RANGE [lowerBound TO upperBound] |
Criteria |
Criteria.boost(float boost)
Boost positive hit with given factor. eg. ^2.3
|
Criteria |
Criteria.contains(String s)
Crates new CriteriaEntry with leading and trailing wildcards
NOTE: mind your schema as leading wildcards may not be supported and/or execution might be slow. |
Criteria |
Criteria.endsWith(String s)
Crates new CriteriaEntry with leading wildcard
NOTE: mind your schema and execution times as leading wildcards may not be supported. |
Criteria |
Criteria.expression(String s)
Crates new CriteriaEntry allowing native solr expressions
|
Criteria |
Criteria.fuzzy(String s)
Crates new CriteriaEntry with trailing ~
|
Criteria |
Criteria.fuzzy(String s,
float levenshteinDistance)
Crates new CriteriaEntry with trailing ~ followed by levensteinDistance
|
Criteria |
SolrDataQuery.getCriteria() |
Criteria |
Criteria.greaterThan(Object lowerBound)
Crates new CriteriaEntry for
RANGE {lowerBound TO *] |
Criteria |
Criteria.greaterThanEqual(Object lowerBound)
Crates new CriteriaEntry for
RANGE [lowerBound TO *] |
Criteria |
Criteria.in(Iterable<?> values)
Crates new CriteriaEntry for multiple values
(arg0 arg1 arg2 ...) |
Criteria |
Criteria.in(Object... values)
Crates new CriteriaEntry for multiple values
(arg0 arg1 arg2 ...) |
Criteria |
Criteria.is(Object o)
Crates new CriteriaEntry without any wildcards
|
Criteria |
Criteria.lessThan(Object upperBound)
Crates new CriteriaEntry for
RANGE [* TO upperBound} |
Criteria |
Criteria.lessThanEqual(Object upperBound)
Crates new CriteriaEntry for
RANGE [* TO upperBound] |
Criteria |
Criteria.near(BoundingBox box)
Creates new CriteriaEntriy for {@code !
|
Criteria |
Criteria.near(GeoLocation location,
Distance distance)
Creates new CriteriaEntry for {@code !
|
Criteria |
Criteria.not()
Crates new CriteriaEntry with leading -
|
Criteria |
Criteria.or(Criteria criteria)
Chain using
OR |
Criteria |
Criteria.or(Field field)
Chain using
OR |
Criteria |
Criteria.or(String fieldname)
Chain using
OR |
Criteria |
Criteria.startsWith(String s)
Crates new CriteriaEntry with trailing wildcard
|
static Criteria |
Criteria.where(Field field)
Static factory method to create a new Criteria for provided field
|
static Criteria |
Criteria.where(String field)
Static factory method to create a new Criteria for field with given name
|
Criteria |
Criteria.within(GeoLocation location,
Distance distance)
Creates new CriteriaEntry for {@code !
|
Modifier and Type | Method and Description |
---|---|
List<Criteria> |
Criteria.getCriteriaChain()
Get the collection of criterias
|
Modifier and Type | Method and Description |
---|---|
<T extends SolrDataQuery> |
SolrDataQuery.addCriteria(Criteria criteria)
Append criteria to query.
|
Criteria |
Criteria.and(Criteria... criterias)
Chain using
AND |
Criteria |
Criteria.and(Criteria criteria)
Chain using
AND |
Criteria |
Criteria.or(Criteria criteria)
Chain using
OR |
Constructor and Description |
---|
SimpleFacetQuery(Criteria criteria) |
SimpleFacetQuery(Criteria criteria,
Pageable pageable) |
SimpleFilterQuery(Criteria criteria) |
SimpleQuery(Criteria criteria) |
SimpleQuery(Criteria criteria,
Pageable pageable) |
Constructor and Description |
---|
Criteria(List<Criteria> criteriaChain,
Field field) |
Criteria(List<Criteria> criteriaChain,
String fieldname) |
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.