Skip to main content

Conditions

In the QSC conditions are used for several configurations:

  • query profiles in search configuration

  • the condition must return a boolean value

Expressions / Functions

c.isMatchAllQuery()
c.tokenCount() > 0
c.hasTag('foo')

isMatchAllQuery()

  • return true if the query is a * or empty query

tokenCount()

  • return the count of the token in the query

hasTag(tag)

  • return true when the search query contains the specified tag