Go to Department for Education home page

Searching

Boolean Operators

Boolean operators allow terms to be combined through logic operators. Search supports AND, "+", OR, NOT and "-" as Boolean operators. Boolean operators must be ALL CAPS.

OR

The OR operator is the default conjunction operator. This means that if there is no Boolean operator between two terms, the OR operator is used. The OR operator links two terms and finds a matching document if either of the terms exist in a document. This is equivalent to a union using sets. The symbol || can be used in place of the word OR.

AND

The AND operator matches documents where both terms exist anywhere in the text of a single document. This is equivalent to an intersection using sets. The symbol && can be used in place of the word AND.

+

The "+" or required operator requires that the term after the "+" symbol exist somewhere in a the field of a single document.

NOT

The NOT operator excludes documents that contain the term after NOT. This is equivalent to a difference using sets. The symbol ! can be used in place of the word NOT.

-

The "-" or prohibit operator excludes documents that contain the term after the "-" symbol.

Grouping

Search supports using parentheses to group clauses to form sub queries. This can be very useful if you want to control the boolean logic for a query.

Fields

By default search will go through all metadata available. However you can search in specific fields by typing the field name followed by a colon ":" and then the term you are looking for.

Text fields available for a variable are :

  • text
  • id
  • label
  • description
  • valuelabel
  • multilabel

There are also some boolean fields which the only values you can search for are true of false :

  • derived
  • multicoded

Since text is the default field, the field indicator is not required.

Note: The field is only valid for the term that it directly precedes, so the query

title:Do it right

Will only find "Do" in the title field. It will find "it" and "right" in the text field.

iLSYPE by GIDE/SDA