Add Text Query Command

Syntax

The syntax for the add text query command is:

addTextQuery(<textQuery>)

There are no defaults for the addTextQuery 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 query command adds the text query, and then it calls clearAllPaging().

Example - Using the add text query command

This add text query command adds a new text query for records with title containing african mammals,
and it resets paging on the ContentType facet field and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.cmd=addTextQuery(Title\:\(african+mammals\))

Try It