FAOLEX Search Guide
This document describes syntax rules to perform searches in the “FAOLEX Document Search” box of the external FAOLEX. It allows to build queries which are not available directly in FAOLEX Advanced Search.
Search operators
You can qualify a term by prefixing it with a search operator that restricts the matching to a specific piece of metadata (field). A colon (:) after the operator matches the term to values in search results.
The list of search operators which can be used for FAOLEX:
FIELD |
SEARCH OPERATOR |
SAMPLE USE |
All metadata and related file |
(none) |
"Infectious Animal Disease" prevention |
Country/Territory ISO-3 code |
country |
country:(DEU) |
Country/Territory English name |
countries |
countries:(Italy Germany) |
Date of record's entry - from |
dateofentryfrom |
dateofentryfrom:(20230701) |
Date of record's entry - to |
dateofentryto |
dateofentryto:(20031231) |
Date of record's modification - from |
dateofmodificationfrom |
dateofmodificationfrom:(20230701) |
Date of record's modification - to |
dateofmodificationto |
dateofmodificationto:(20031231) |
Domain - code |
subjectselection |
subjectselection:(LA) |
Domain – English name |
subjectselections |
subjectselections:(livestock) |
FAOLEX ID |
faolexid |
faolexid:(LEX-FAOC200100) |
Geographical area (region) |
geographicalareas |
geographicalareas:("Western Europe" Asia) |
Keyword - code |
keyword |
keyword:(503 506) |
Keyword - English name |
keywords |
keywords:("animal health" "animal reproduction") |
Language of document |
documentlanguages |
documentlanguages:(Italian) |
Main/classifying keyword |
mainclassifyingkeywords |
mainclassifyingkeywords:("animal health") |
Major record |
major |
major:(Y) |
Primary subject |
mainareas |
mainareas:(governance) |
Regional organization - code |
organizationcode |
organizationcode:(asean) |
Regional organization – English name |
organization |
organization:(Association of Southeast Asian Nations) |
Related international instrument |
implementstre |
implementstre:("TRO-012724") |
Repealed |
repealed |
NOT repealed:(REPEALED) |
Territorial subdivision |
territorialsubdivisions |
territorialsubdivisions:(Tasmania OR Queensland) |
Title of text |
title |
title:("Infectious Animal Disease") |
Type of text - code |
typeoftext |
typeoftext:(L NOT P) |
Type of text - English name |
typeoftexten |
typeoftexten:(Legislation) |
Year of text |
year |
year:(2001) |
Year of text - from |
yearfrom |
yearfrom:(2015) |
Year of text - to |
yearto |
yearto:(2000) |
Logical operators and symbols
LOGICAL OPERATOR / SYMBOL |
DESCRPTION |
AND |
If you don't specify an operator, logical AND is implied. For example, typeoftext:(L AND P) returns records that match both L and P type of text. The same results gives typeoftext:(L P) |
OR |
Logical OR is also supported, for example typeoftext:(L OR P). It allows to find content that includes at least one of the terms. |
NOT |
You can negate a term with a - or NOT prefix. For example, typeoftext:(L NOT P) returns all records with L but not P record type. |
"…" |
If you want to find content that includes the exact words in the same order, please use double quotes "…" outside the terms. Letter case is ignored. If double quotes are not used, terms can be found in any order. Therefore title:("Infectious Animal Disease") returns less records than title:(Infectious Animal Disease) |
(…) |
The NOT operator has the highest precedence, followed by OR and AND in that order. You can change the precedence by using brackets (…), for example ("Infectious Animal Disease" countries:(China)) NOT year:(1967) |
Sample URL to see results of query: https://www.fao.org/faolex/results/en/?query=typeoftext:(P) AND keyword:(050) AND mainareas:(fisheries)
Additional information about the syntax used by Google Cloud Search can be found here: https://cloud.google.com/data-catalog/docs/how-to/search-reference