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
Strings or SearchQuerys. |
String |
getQuery() |
String |
getUnescapedQuery() |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBoostpublic 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 SearchQuerypublic String getQuery()
public String getUnescapedQuery()
public Map<String,? extends com.atlassian.confluence.plugins.index.api.AnalyzerDescriptorProvider> getAnalyzerProviders()
public BooleanOperator getOperator()
public List getParameters()
SearchQueryStrings or SearchQuerys.getParameters in interface SearchQueryStrings or SearchQuerys.public SearchQuery expand()
SearchQueryexpand in interface Expandable<SearchQuery>expand in interface SearchQueryCopyright © 2003–2022 Atlassian. All rights reserved.