The following aspects can be added to to the user's search.
|
Operator
|
|
Description
|
|
"term1 term2 ..."
|
|
Enclosing a phrase in quotes. Specifies that words should be adjacent. Phrase operator.
e.g., "laser printer"
|
|
+term
|
|
Requires a term
e.g., +"laser printer" color
|
|
-term
|
|
Excludes a term
e.g., "laser printer" -color
|
|
field:term
|
|
Specifies that the term must be found in that field. See listing of fieldnames in the table below. Either default fieldnames, or xml & meta tags you have specified.
e.g., title:"laser printer"
|
|
query 1 | query 2
(single pipe)
|
|
Searches the results of query1 with query2, ranking results by relevance to both query1 and query2. The pipe will tell the engine to include content on both sides of the pipe, where the string to the right of the pipe is a subset of the string to the left of the pipe.
e.g., dogs, cats | fleas
|
|
query 1 || query 2
(double pipe)
|
|
Searches the results of query1 with query2, ranking results only by relevance to query2. In searches that contain a double-pipe, only the content to the right of the doublepipe is used in relevance ranking. Content to the left of the double-pipe has no impact on relevance scores.
e.g., trucks, cars || tires
|
|
case
|
|
Lowercase terms match any case, otherwise case is matched exactly as typed.
|
Pipes and plusses
Sometimes the the pipe operator and plus operator act the same. For example, the following queries produce the same results:
+litigation + employment
litigation | employment
In each case, both the word litigation and the word employment must appear in the search results. However, by adding several more query terms to the mix, the difference becomes more apparent. These are not equivalent.
+litigation +patent +employment +benefits
litigation | employment benefits
There is little use for the double-pipe in user queries, however administrators may wish to know this syntax in order to better understand the “qp” form variable. When an administrator sets a value for the “qp” (query prefix) form variable, that value is prefixed to the user’s query with a double-pipe.
Boolean equivalent
If a query can be specified in Boolean logic as:
(employee) AND (litigation OR (benefits)) AND NOT (patents OR compensation)
Using Ultraseek Search operators, the complex query above may be typed into the search box as:
+"employee" litigation "benefits" -patents, -compensation