# Example Cardinal Placement Rules

The following cardinal placement rule inserts the document with the reference `21764` as the first result for any query that contains the terms `cod`, `halibut`, or `haddock`.

    #DREREFERENCE 659768056580090736
    #DRETITLE cardinal_placement01
    #DREFIELD QMSTYPE="1"
    #DREFIELD ALWAYSACTIVE="True"
    #DREFIELD QMSVALUE1="21764"
    #DREFIELD QMSVALUE2="1"
    #DREFIELD QMSAGENTBOOL="cod OR halibut OR haddock"
    #DRECONTENT
    cod halibut haddock
    #DREENDDOC

This rule inserts the document with the reference `21764` at the top of the response to the following query:

    action=Query&Text=halibut

The following cardinal placement rule inserts the document with the reference `FilmBoxSet` as the first result for any query for all products that have `DVD` in the `Category` field.

    #DREREFERENCE 746297379561765222
    #DRETITLE cardinal_placement02
    #DREFIELD QMSTYPE="1"
    #DREFIELD ALWAYSACTIVE="True"
    #DREFIELD QMSVALUE1="FilmBoxSet"
    #DREFIELD QMSVALUE2="1"
    #DREFIELD QMSAGENTBOOL="*"
    #DREFIELD ALWAYSMATCH="1"
    #DREFIELD QMSFIELDTEXT="MATCH{DVD}:Category
    #DREFIELD Category=""
    #DRECONTENT
    #DREENDDOC

This rule inserts the document with reference `FilmBoxSet` at the top of the response to the following query:

    action=Query&Text=*&FieldText=MATCH{DVD}:Category

_FT_HTML5_bannerTitle.htm