Query syntax
Each word of your search query matters and will be used to retrieve the results.
The default operator is AND. For queries of more than two words - for example, a search for social housing - only material where both of these words appear will be returned.
Search is case insensitive. London is the same as london is the same as LoNDon.
Words that are commonly used, such as the, a, is, and for, are usually ignored. These are referred to as stop words.
Stemming may be applied to your query. For example, running will return results for running, run, and runs.
Your search query may be expanded to include synonyms. For example, a search for farming will be expanded to farming OR agriculture and a search for social welfare will be expanded to "social welfare" OR "welfare state". This is known as query expansion. Query expansion can be disabled by placing square brackets around the search term, for example [farming]. Librarian tools provide a means to show how your query has been expanded.
Punctuation which doesn't form part of the syntax of the query is ignored.
Accented characters are not ignored. For example, searching for resumé will return different results to a search for resume.
Phrases
Text within quotation marks will match phrases; the words entered in the order specified.
Stemming is applied to phrase searching; the query may not return an exact match of text entered. For example, "social network" may return material containing "social networks" or "social networking".
Stop words in a quoted phrase are ignored. For example, in a search query containing "is it legal", only the word legal will be searched for.
Wild cards
Single character matching
A question mark appearing at the start or end of a word in a query matches any single character.
For example, ?arrier will return results for barrier, carrier, farrier, and so on. mar? will return matches including Mars, Mark, Marc, mare, and so on.
Multiple character matching
An asterisk at the start or end of a word in a query matches zero or more sequential characters.
For example, *land will return results for words ending with land, such as England, Ireland, Scotland, Finland, and so on. tro* will return results for words starting with tro, such as tropical, troops, trout, and so on.
Boolean operators
Boolean search uses operators including NOT, AND and OR to refine search results by excluding, including or broadening the search query to include specific terms. Boolean operators in your query must be in uppercase.
NOT
The NOT operator excludes the word or phrase appearing immediately after that operator. For example, the query cats NOT dogs returns material containing the word cats whilst excluding any material containing the word.
The minus symbol can be used instead of the NOT operator. For example, cats -dogs.
AND
If your query consists of more than one word, they are combined using the AND operator, meaning all words must be present in the material returned.
Where consecutive words in your query are listed as a concept in the Commons Library thesaurus, the search engine will look for these words as a phrase. For example, because 'care homes' appears as a concept in the thesaurus, a query for care homes will result in a search for "care homes".
Adding the operator AND between the words in your query will override this, so a search query for care AND homes will result in a search for care AND homes, not "care homes".
OR
To allow matches against any one of several words, you can use the OR operator. For example, cats OR dogs OR horses returns results that contain one, two or all of those words.
Grouping using Boolean operators
Your query may contain more than one Boolean operator.
The default processing order for search queries containing any combination of NOT, AND or OR, is NOT, then AND, then OR. Parentheses may be used to override the default order.
For example, a search query for olympics (london OR paris) first processes the OR operator in the parentheses, then combines that with the implied AND for olympics, resulting in a search for olympics and either or both London or Paris.
This query could also be written as (olympics london) OR (olympics paris).
To return results containing either the London Olympics or the Glasgow Commonwealth Games you can use the query: (olympics London) OR ("commonwealth games" Glasgow).
A search query for diet OR nutrition AND children will return all material containing 'diet' and material containing both 'nutrition' and 'children'. Should you wish to return results for 'children and diet' - or 'children and nutrition' - you can construct your query as either: (diet OR nutrition) AND children or (diet AND children) OR (nutrition AND children).
In order to keep each concept self-contained and your overall logic predictable, wrap any parts of the query using OR in parentheses.