Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article highlights and explains how to set up conditionals and combine features to build powerful, precise rules. 

...

The antecedent is the first, or “if,” part of a conditional statement. The consequent is the second, or “then,” part of a conditional statement. The consequent is the result of the antecedent. Keep in mind that conditional statements might not always be written in the “if-then” form. Conditional statements may be nested such that either or both of the antecedent or the consequent may themselves be conditional or logical statements.


Example Conditionals
Info
title

Examples of conditionals you can use in Hawksearch would be the following:  

  • If an item is on sale, then boost it relative to the top of other relevant search results. 
  • If an item is discontinued or out of stock, then hide it. 
  • If an item is cheaper than other items in the search results, then bury it to the bottom of the results. 
  • If an item is a very popular item in the department, then pin it to the top of the search results for the department name.  

By using well-formed conditionals in Hawksearch to trigger actions, you can precisely enable actions like boost/bury, visibility rules, landing pages, item pinning, etc. 

Table of Contents

Navigation

  1. ANY/ALL Selector Box
  2. Field Selection Dropdown Box
  3. Operator Selection Dropdown Box
  4. Value Input Field (Autocomplete Enabled)
  5. Add Condition Box
  6. Depth Adding Box
    1. Angled Bracket >> Adds a nested condition one layer below the selected condition. 
    2. Minus: Clicking on this deletes the selected condition.

...

Conditional statements in Hawksearch utilize several operators to logically evaluate statements. All operators are not applicable to each field, depending on if the operator is derived from data or from user inputs.   

  1. Contains
  2. Does Not Contain
  3. Contains In
  4. Does Not Contain In In 
  5. Is 
  6. Is Not
  7. Is In 
  8. Is Not In


Info

Not all fields are capable of using all operators! Strings XXXXXXXXX CHECK

...

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@21fba2
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "conditional" , "in" , "contains" , "trigger" , "is" ) and type = "page" and space = "HSKB"
labelsconditional trigger is in contains

...