public class FullTextQuery extends Object implements Query
Query
realizing a full-text search on contents (search on all properties).
Available operators:Query.LogicalOperator, Query.Operator
Modifier and Type | Field and Description |
---|---|
protected String |
_language
The language.
|
protected Query.Operator |
_operator
The operator.
|
protected String |
_value
The value to test.
|
protected boolean |
_valueAlreadyEscaped
true if the value is already escaped and there is no need to escape again the value during the build of the query . |
Constructor and Description |
---|
FullTextQuery(String value)
Build a FullTextQuery.
|
FullTextQuery(String value,
Query.Operator operator)
Build a FullTextQuery.
|
FullTextQuery(String value,
String language)
Build a FullTextQuery.
|
FullTextQuery(String value,
String language,
Query.Operator operator)
Build a FullTextQuery.
|
FullTextQuery(String value,
String language,
Query.Operator operator,
boolean alreadyEscaped)
Build a FullTextQuery.
|
Modifier and Type | Method and Description |
---|---|
String |
build()
Build the solr query string representing the Query object.
|
boolean |
equals(Object obj) |
String |
getLanguage()
Get the language.
|
Query.Operator |
getOperator()
Get the operator to use.
|
String |
getValue()
Get the value.
|
int |
hashCode() |
protected Query.Operator _operator
protected boolean _valueAlreadyEscaped
true
if the value is already escaped and there is no need to escape again the value during the build of the query
.public FullTextQuery(String value)
value
- the value.public FullTextQuery(String value, Query.Operator operator)
value
- the value.operator
- The operator to use.public FullTextQuery(String value, String language)
value
- the value.language
- the language.public FullTextQuery(String value, String language, Query.Operator operator)
value
- the value.language
- the language.operator
- The operator to use.public FullTextQuery(String value, String language, Query.Operator operator, boolean alreadyEscaped)
value
- the value.language
- the language.operator
- The operator to use.alreadyEscaped
- true if the value is already escaped and there is no need to escape again the value during the build of the query
.public String getLanguage()
public Query.Operator getOperator()
public String build() throws QuerySyntaxException
Query
build
in interface Query
QuerySyntaxException
- if the query can't be built because of a syntax error.