Stop: Query pipeline feature
Stop: Query pipeline feature
A query pipeline statement expressing the stop
feature defines a list of case-insensitive words to remove from the basic query expression (q
) before executing a query against the index.
Leading practice
Typically, a statement expressing the In general, you should ensure that this is the case by associating such a statement, and/or the query pipeline it’s defined in, to a global condition. See Leading practices for more recommendations and tips on managing stop word rules. |
Notes
|
The following diagram shows the process of a query being sent to the Search API and the order of execution of query pipeline features.
Syntax
Use the following query pipeline language (QPL) syntax to define a statement expressing the stop
feature:
stop <words>
<words>
A comma-separated list of quoted strings, where each element defines a case-insensitive word that should be removed from the basic query expression (for example, "foo", "bar", "baz"
).
A given stop word instance won’t be removed from the basic query expression when:
|
Example
In an empty query pipeline named Testing Stop
, you define a statement expressing the stop
feature with the following QPL definition:
Statement:
stop "be", "do", "how", "i", "in", "my", "not", "or", "the", "to"
The following table shows how the basic query expression of different queries going through the Testing Stop
query pipeline is processed when this statement applies:
Current q expression |
Processed q expression |
Explanation |
---|---|---|
|
|
Stop words are kept if the current |
|
|
|
|
|
Stop words acting as query syntax Boolean operators are kept (hence |