public class LabelsQuery extends Object implements SearchQuery
PrefixQuery in the should clause of
the final BooleanQuery and all other global labels will be ignored if they are ever included in the input
collection. If none of the user labels is found, each global label (if specified) will be included as a TermQuery
in the final BooleanQuery.| Constructor and Description |
|---|
LabelsQuery(Set<String> labels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
SearchQuery |
expand()
Expands this query into a composite query (that composes other queries).
|
String |
getKey() |
Set<String> |
getLabels() |
List |
getParameters()
List of parameters as
Strings or SearchQuerys. |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetBoost, getSubClausespublic static final String KEY
public LabelsQuery(Set<String> labels)
labels - a set of labels. Namespaced labels such as "my:foo" are permitted. Required.IllegalArgumentException - if labels is nullpublic String getKey()
getKey in interface SearchQuerypublic 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.