public class MultiTextFieldQuery extends Object implements SearchQuery
Constructor and Description |
---|
MultiTextFieldQuery(Collection<String> fields,
Map<String,? extends com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider> analyzerProviders,
BooleanOperator operator,
String query)
Create a query where a field can be tokenized by a provided analyzer.
|
MultiTextFieldQuery(String query,
Set<String> fields,
BooleanOperator operator)
Constructs a multi-field query with the specified query, fields and operator.
|
MultiTextFieldQuery(String query,
String... fields)
Constructs a multi-field query with the operator set to
BooleanOperator.AND . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
Map<String,? extends com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider> |
getAnalyzerProviders()
Returns information required to construct analyzer for the query if it is available.
|
Set<String> |
getFields() |
String |
getKey() |
BooleanOperator |
getOperator() |
List |
getParameters()
List of parameters as
String s or SearchQuery s. |
String |
getQuery() |
String |
getUnescapedQuery() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getBoost
public MultiTextFieldQuery(String query, Set<String> fields, BooleanOperator operator)
fields
- the fields to query againstoperator
- whether the query must match all terms AND
or any of them {code OR}.query
- the querypublic MultiTextFieldQuery(String query, String... fields)
BooleanOperator.AND
.fields
- the fields to query againstquery
- the querypublic MultiTextFieldQuery(Collection<String> fields, Map<String,? extends com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider> analyzerProviders, BooleanOperator operator, String query)
fields
- the fields to query againstanalyzerProviders
- specifies a non-standard analyzer for a fieldoperator
- whether the query must match all terms AND
or any of them {code OR}query
- the querypublic String getKey()
getKey
in interface SearchQuery
public String getQuery()
public String getUnescapedQuery()
public Map<String,? extends com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider> getAnalyzerProviders()
public BooleanOperator getOperator()
public List getParameters()
SearchQuery
String
s or SearchQuery
s.getParameters
in interface SearchQuery
String
s or SearchQuery
s.public SearchQuery expand()
SearchQuery
expand
in interface Expandable<SearchQuery>
expand
in interface SearchQuery
Copyright © 2003–2019 Atlassian. All rights reserved.