Getting the Query Syntax for a Search in UCM
By Kyle Hatlestad on Oct 02, 2009
Sometimes in writing components, coding in Site Studio, or writing 3rd party integrations into UCM, you often need to run searches to get back results of content. To do so, you pass a parameter to the GET_SEARCH_RESULTS service called 'QueryText' with the value of your query.
But knowing what syntax to use when defining that query can sometimes be tricky. It get's placed in the URL, but is encoded so can be messy to deal with. But a cleaner version is a few simple clicks away.
So first you create your search:
Then after you get your results, click on Query Actions -> Search Within.
There at the top is the query in a nice format that you can quickly cut and paste into your code.