|
Writing a query is a way to ask a question to a search engine. The way a user asks a question in the form of a query determines which documents will be returned. The Response Line Search Screen has been designed to not only allow a user to perform keyword searches but also to provide the user with the ability to:
The Response Line Search System has been configured to search for all or part of an Interp ID Number. To perform a search using this feature, enter all or part of the ID Number, using asterisks or question marks as wild card operators (see More About Wild Card Operators, below).
The Response Line Search System has also been configured to allow users to query interpretations by their referenced standard. To perform a search using this feature, enter all or part of the referenced standard number, using asterisks or question marks as wild card operators (see More About Wild Card Operators, below). Note: If the referenced document is from 29 CFR, then omit "29 CFR" and input just the section number. For example, to search for interpretations that reference 29 CFR 1910, "1910" would be input.
The Response Line Search System has also been configured to allow users to query interpretations by their date issued. To perform a search using this feature, a cutoff date (in MM/DD/YY format) is entered along with a designation of "before", "after" or "on". The results set will include only interpretations with dates that fall into the time span that was designated. Note that the earliest interpretations were logged in June of 1993.
A basic query can be written using words and phrases, separated by commas. If a user wants to see interpretations about falls from ladders, they can begin with a single-word query, such as:
In this case, the query finds all the documents that include the word "ladder." However, this search would include not only documents about falls from ladders, but also documents about securing ladders. Note that users don't have to specify the plural form of a search keyword. A basic search includes stemmed variations, such as "ladders." Note also that documents about falls that did not include the word "ladder" would not be retrieved. To ask for more specific results, several words or phrases can be entered, separated by commas, that describe the subject more precisely, such as: In this case, the query finds documents that contain "falls" or "ladders." (Case doesn't matter in queries: a word entered in lower case will match words in upper case, lower case, or mixed case.) The most relevant documents, those that discuss falls from ladders, will appear at the top of the results list.
Queries can be made more specific by combining words with operators. Operators are special words that are used to indicate logical relationships between the descriptive terms that make up a query.
Here are basic operators that can be specified as part of queries.
NOTE: AND, OR, and NOT are treated as operators by default, and do not require brackets. If a user wants to use them as literal words, they must be placed in double quotes. All other operators must be placed within brackets. Here are some additional operators that can be specified as part of queries.
Using these examples, queries can be written that will return exactly the information required.
Most queries can be written by entering the words and phrases of interest separated by commas. If a user were looking for information about falls or about scaffolding, they could enter:
This query returns documents that contain the terms "falls" (case doesn't matter in queries), "scaffolding," or both. The results list will display a ranked list of documents, with the most relevant documents at the top of the list.
Perhaps a user wants to see documents that refer to a series of words that occur in a specific order, such as "falls from scaffolding". The whole phrase could be entered:
This query returns only documents that contain all of these words in the exact sequence specified, including stemmed variations of the search terms.
The simple query returned some documents about falls, some documents about scaffolding, and some about both subjects. If a user is interested in falls from scaffolding, the AND operator can be used to be more specific. The following query could be entered:
This query returns only those documents that contain both "falls" and "scaffolding" in the same document, so this list will be shorter than the results of the query written using commas. (AND can be entered in lower case and it will still be treated as an operator.) AND is treated as an operator unless it is surrounded by quotation marks. If the word "and" is needed as part of a phrase, place it inside quotation marks. For example, to search for the phrase "oxygen and carbon monoxide", the following phrase would be entered:
Certain terms may be specifically excluded from the results list using the NOT operator. For example, a user may want to see documents about lead poisoning, while having no interest in documents about paint. The user could enter:
This query returns only documents referring to lead poisoning that do not also mention paint. If a document includes both "lead poisoning" and "paint", it will be excluded.
|