Query Manipulation Server 25.4
Query Manipulation Server Help

# 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 2025 Open Text
Version 25.4 | Last updated October 2025

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to MFI-swpdl.idoldocsfeedback@opentext.com.

We appreciate your feedback!

Product: Knowledge Discovery Query Manipulation Server 25.4

Topic Title: Example Cardinal Placement Rules