Add Text Filter Command

Syntax

The syntax for the add text filter command is:

addTextFilter(<filterQuery>)

There are no defaults for the addTextFilter command. Lucene escaping applies to this command. Characters that may need to be escaped include: +-&|!(){}[]^"~*?:\. Special characters only need to be escaped if their special meaning was not intended. Regular argument escaping must be applied after Lucene escaping.


Function

The add text filter command adds the text filter, and then it calls clearAllPaging().

Example - Using the add text filter command

This add text filter command adds a new text filter for zoology,
and it resets paging on the ContentType facet field and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.cmd=addTextFilter(zoology)

Try It