Add Text Query Command


The syntax for the add text query command is:


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.


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:,or,2,15&s.cmd=addTextQuery(Title\:\(african+mammals\))

Try It