Text Filter Parameter

Syntax

The syntax for the text filter parameter is:

s.fq=<filterQuery>

A query string may contain many s.fq parameters. There are no defaults for the s.fq parameter. Lucene escaping applies to this parameter. Characters that may need to be escaped include: +-&amp;|!(){}[]^"~*?:\. Special characters only need to be escaped if their special meaning was not intended.


Function

The text filter parameter is used to apply reusable text filters to queries. Unlike text queries, text filters do not affect document relevance score. Text filters are useful when a facet value filter is not available to narrow the search, and multiple queries need to be run inside the same limiting scope, without the limiting scope affecting relevance scores.

Example - Using the text filter parameter

This query limits to documents about trade and economy:

  s.fq=trade+economy

Try It