Stop-Words
When indexing, stop-words are discarded and not indexed. When searching, they are also ignored and treated as if they were not sent to the query processor. This is done when parsing the query.
The following words are treated as stop-words by default:
The format is STOPWORDS {number} {stopword} ...
where number is the number of stopwords given. The argument must come before the SCHEMA
argument. For example:
In rare use cases, where queries are very long and are guaranteed by the client application to not contain stopwords, it is possible to avoid checking for them when parsing the query. This saves some CPU time, and is only worth it if the query has dozens or more terms in it. Using this without verifying that the query doesn’t contain stop-words might result in empty queries.