Below is the example of using the GetSearch operation for BI search of indexed dimension elements. The request contains text for search, the response contains information about the data slices based on the found dimension elements.
{ "GetSearch" : { "tMb" : { "id" : "S1!M" }, "tArg" : { "GetSourceDataArg" : { "text" : "Russia", "pattern" : { "n" : "true", "note" : "true", "time" : "true", "dateLevels" : "true", "freeDims" : "true", "sourceMeta" : "false", "factorKeys" : "false" } } } } }
{ "GetSearchResult" : { "GetSourceDataResult" : { "resCount" : "1", "its" : { "it" : [ { "n" : "Russia", "hlName" : "<hlt>Russia<\/hlt>", "note" : "", "customRes" : "", "docId" : "5472|38", "time" : { "s" : [ "2000", "2001", "2002", "2003", "2004", "2005", "2006", "2007", "2008", "2009", "2010", "2011", "2012", "2013" ] } } ] } } } }
public static GetSearchResult BiSearchSourceData(string mb, string text) { var somClient = new SomPortTypeClient(); //Proxy object for operation execution //Operation execution parameters var tGet = new GetSearch() { tArg = new GetSearchArg() { GetSourceDataArg = new SearchSourceDataArg() { pattern = new SearchSourceDataPattern() { sourceMeta = false }, text = text } }, tMb = new MbId() { id = mb } }; //BI search of indexed information about dimension elements var result = somClient.GetSearch(tGet); return result; }
See also: