# 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

© Copyright 2019 Micro Focus or one of its affiliates | Send documentation feedback Close Send documentation feedback To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a mail client, and then send this email to swpdl.idoldocsfeedback@microfocus.com. We appreciate your feedback! Product: Topic Title: Help Topic: Feedback:

_FT_HTML5_bannerTitle.htm