Class LabelsQuery

  • All Implemented Interfaces:
    Expandable<SearchQuery>, SearchQuery

    public class LabelsQuery
    extends Object
    implements SearchQuery
    Allows querying by multiple labels. Results returned must match at least one of the specified labels. Although user labels is deprecated, each of them will be included as a 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.
    Since:
    7.20