Forum Discussion

Yulia-Anaplan's avatar
4 years ago

Liql query with OR/AND

Hi, I am trying to create a query that will pull articles with specific labels. For example, I'd like to show only articles that have labels 'Cats' or 'Dogs' or 'Birds' or any different combinati...
  • SuzieH's avatar
    4 years ago

    Hi Yulia-Anaplan. OR has a fairly limited use within LiQL. As you saw earlier, OR will act as an AND in the use case you tried. Generally, OR is supported in conjunction with MATCHES. Keyword Searches in a LiQL Query shows an example. I see that labels.text does support MATCHES when used as a constraint on messages collection queries. That might get you closer to what you need.