public class KeywordQuery extends Object implements Query
Query
testing the keywords property of a project resource.Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
private List<String> |
_keywords |
private Query.Operator |
_operator |
Constructor and Description |
---|
KeywordQuery(Collection<String> keywords)
Build a KeywordQuery to test if the keywords property is equal to one of the given keywords
|
KeywordQuery(Query.Operator operator,
Collection<String> keywords)
Build a KeywordQuery.
|
KeywordQuery(Query.Operator operator,
String... keywords)
Build a KeywordQuery to test if the keywords property is equal or different to one of the given keywords
|
KeywordQuery(String... keywords)
Build a KeywordQuery to test if the keywords property is equal to one of the given keywords
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
private Query.Operator _operator
public KeywordQuery(String... keywords)
keywords
- the keywords.public KeywordQuery(Collection<String> keywords)
keywords
- the keywords.public KeywordQuery(Query.Operator operator, String... keywords)
operator
- the operator (equal ot not-equal)keywords
- the keywords.public KeywordQuery(Query.Operator operator, Collection<String> keywords)
operator
- the operator.keywords
- the keywords.public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.