Using Advanced Search Syntax
While Google-type searching will work in HeinOnline, using advanced searching techniques will help formulate more specific searches, refining results before they appear and minimizing the amount of time spent sifting through the results of a query.
Multiple single terms or phrases can be combined together into the search bar using Boolean operators (AND, +, OR, NOT, –) to form a more complex query. These operators must be capitalized to ensure the quantity and quality of search results.
AND (or &&)
When used between two terms, the AND operator generates documents in which both terms exist, either within the text or the metadata. In the example below, every document within the search results will include both the terms china and “child labor” at least once.
When used between two terms, the + (or required) operator dictates that the term after the “+” symbol must exist somewhere in a single document. In the example below, every document in the search results must contain the term nuclear and may contain the term energy.
When used between two terms, the OR operator links the two and finds documents in which either of the two terms exist. In the example below, documents containing either the phrase “right to vote” or the term suffrage will appear in the results.
When used between two terms, the – (or prohibit) operator excludes documents which contain the term after the “-” symbol. In the example below, every document in the search results must contain the term whistleblower but must not contain the term “Donald Trump”.
Note: Use parentheses to group clauses and form sub-queries. This can be useful to control Boolean logic for a search query.
For example, to search for either the terms watershed or “water rights” in addition to the term planning, form the search as such: (watershed OR “water rights”) AND planning.
Wildcard searches provide the ability to modify query terms to allow for a wide range of searching options. This type of search uses a “wildcard” character as a placeholder, which can then be interpreted as various literal characters as the search runs. In HeinOnline, single and multiple-character wildcard searches are supported.
Single-Character Wildcard Search
Use the ? symbol to perform a single-character wildcard search. For example, when entering the term te?t into the search bar, users will receive results that include words like “text” and “test.”
Multiple-Character Wildcard Search
Use the * symbol to perform a multiple-character wildcard search. For example, when entering the term discriminat* into the search bar, users will receive results that include variations of the word, such as “discriminate,” “discrimination,” and “discriminatory.”
A proximity search looks for documents where two or more terms appear within a specified distance. In HeinOnline, there are multiple ways to conduct a proximity search between two or more single terms.
Tilde (~) Symbol:
To find multiple-word terms within a certain number of words of each other, which can be in any order in the results, enter the terms in quotation marks and then enter the tilde symbol and your desired number.
In the example below, users will receive results that contain the terms Uber, transportation, and law within 10 words of each other.
To find two single terms within a certain number of words of each other in a document, use w/# between the terms. In the example below, users will receive results that contain the terms Uber and transportation within 10 words of each other.
Use w/s or /s between single terms to find results that contain the terms within approximately the same sentence.
Use w/p or /p between single terms to find results that contain the terms within approximately the same paragraph. The syntax defines a paragraph as within 75 words.
Use w/seg or /seg between single terms to find results that contain the terms within approximately the same segment. The syntax defines a segment as within 100 words.
Note: The current syntax does not support the use of a proximity search with phrase terms. To perform a proximity search between phrases, enter all of the words of the phrases within quotes and use the tilde symbol with the desired number. The example below will produce results containing “civil rights” and “separate but equal” within 25 words of each other.
BOOSTING A TERM
The relevance level of matching documents based on terms found is built into the HeinOnline search engine. In order to boost a single or phrase term, use the caret symbol (^) with a boost factor at the end of the term.
By default, the boost factor is 1. The higher the boost factor, the more relevant the boosted term. Although the boost factor must be positive, it can be less than 1 (for instance, 0.2).
In the example search below, the term Cherokee is indicated as more relevant than the term tribe.
Perform the same boosting technique with phrase terms. In the example search below, “Native American economy” is indicated as more relevant than the term “Cherokee tribe”.
All of this information can be found in our Advanced Search Syntax Guide.