All srv4, cmd4 and do.ashx commands that accept search conditions can use GNQuery expressions. For example, using the ‘srv4 export’ command, pass the query expression as the ‘-conditions ’ option – so:
srv4 export -conditions "gn4:story[gn4:title='From mobile1']" -out c:\temp\q.xml
exports all the stories with title 'From mobile 1' in the ‘c:\temp\q.xml’ file.
Srv4, cmd4 and do.ashx detects that the condition is a GNQuery expression and not an XML conditions file checking the beginning of the string: if it starts with a query namespace prefix (‘gn4:’, ‘nav:’) it is assumed to be a GNQuery expression.
Specifically, the commands accepting GNQuery expressions are:
•srv4 export
•srv4 index
•srv4 unindex
•srv4 spike
•cmd4 index
•cmd4 spike
•cmd4 unpublish
•cmd4 recompute
•cmd4 export
•cmd4 get
•cmd4 triggerwf
•do.ashx?cmd=search
•do.ashx?cmd=unpublish
•do.ashx?cmd=spike
•do.ashx?cmd=triggerwf