Combine criteria in queries


You can use special operators to combine multiple criteria in Coding, Compound or Matrix Coding queries. For example, you can search for content coded at erosion NEAR content coded at salinity.

In this topic


 


Understand the special operators used to combine criteria

When you setup an advanced Coding query or Matrix Coding query you can combine criteria using the following special operators:

Operator Description Example

AND

Gathers content that matches both criteria.

cn_and_operator.gif

Gather content that is coded at fisheries (A) AND water quality (B)

OR

Gather content that matches either  of the criteria

cn_or_operator.gif

Gather content coded at erosion (A) or land degradation (B).

NOT

Gather content that is coded at one node but not at another

cn_not_operator.gif

Gather content coded at rising sea temperatures (A) but NOT coded at coral bleaching (B).

NEAR Content

Gather coded content that is near other coded content.

Gather content coded at the node coral beaching within 20 words of content coded at the node rising sea temperatures.

PRECEDING Content

Gather coded content that precedes other coded content.

Gather content coded at the node water quality where it precedes content coded at the node contaminants .

SURROUNDING Content

Gather coded content that surrounds other coded content.

Gather content at the node solar power where it is surrounded by content at the node alternative energy.

Set proximity for near and preceding options

When you choose the NEAR or PRECEDING operators, you can define the proximity as one of the following:

ic_top_of_page.gifTop of Page

Specify the content that you want to retrieve

When you combine criteria in a query you can choose how much content you want to gather in the resulting node—for example, if you search for salinity NEAR water quality, you could choose to gather the content related to salinity but not the content about water quality. When you setup the query you can choose:

ic_top_of_page.gifTop of Page