Getting the Query Syntax for a Search in UCM

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:

search.jpg

Then after you get your results, click on Query Actions -> Search Within.

search_within.jpg

There at the top is the query in a nice format that you can quickly cut and paste into your code.

Comments:

Also, with pressing link "show advanced options" you'll be presented with text input window, where your current query is being written _before_ execution.

Posted by ivanko on November 26, 2009 at 05:49 PM CST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Kyle Hatlestad is a Solution Architect in the WebCenter Architecture group (A-Team) who works with WebCenter Content and other products in the WebCenter & Fusion Middleware portfolios. The WebCenter A-Team blog can be found at: https://blogs.oracle.com/ ateam_webcenter/

Search

Archives
« April 2015
SunMonTueWedThuFriSat
   
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  
       
Today