public class TextCriteria extends Criteria
CriteriaDefinition
to be used for full text search .Modifier and Type | Class and Description |
---|---|
static class |
TextCriteria.TextCriteriaBuilder |
Constructor and Description |
---|
TextCriteria() |
Modifier and Type | Method and Description |
---|---|
static TextCriteria |
forDefaultLanguage() |
static TextCriteria |
forLanguage(String language)
For a full list of supported languages see the mongdodb reference manual for Text Search Languages.
|
com.mongodb.DBObject |
getCriteriaObject() |
String |
getKey() |
TextCriteria |
matching(String term) |
void |
matching(Term term)
Add given
Term to criteria. |
TextCriteria |
matchingAny(String... words) |
TextCriteria |
matchingPhrase(String phrase)
Given value will treated as a single phrase.
|
TextCriteria |
notMatching(String term) |
TextCriteria |
notMatchingAny(String... words) |
TextCriteria |
notMatchingPhrase(String phrase)
Given value will treated as a single phrase.
|
all, all, and, andOperator, elemMatch, equals, exists, getSingleCriteriaObject, gt, gte, hashCode, in, in, is, lt, lte, maxDistance, mod, ne, near, nearSphere, nin, nin, norOperator, not, orOperator, regex, regex, regex, size, type, where, within, withinSphere, withinSphere
public com.mongodb.DBObject getCriteriaObject()
getCriteriaObject
in interface CriteriaDefinition
getCriteriaObject
in class Criteria
public TextCriteria matchingAny(String... words)
words
- public void matching(Term term)
Term
to criteria.term
- must not be null.public TextCriteria matching(String term)
term
- public TextCriteria notMatching(String term)
term
- public TextCriteria notMatchingAny(String... words)
words
- public TextCriteria notMatchingPhrase(String phrase)
phrase
- public TextCriteria matchingPhrase(String phrase)
phrase
- public static TextCriteria forDefaultLanguage()
public static TextCriteria forLanguage(String language)
language
- Copyright © 2011-2014–2014 Pivotal Software, Inc.. All rights reserved.