IA SearchPublishedProjects

From Array Suite Wiki

Jump to: navigation, search

Used to search the server for published projects.

Contents

Input

ProjectPattern | IDPattern | ProjectFtsType (ProjectFtsType can be “AnyWords” or “AllWords”)

Optional

(none)

Output

MatchedProjectCount:13, 
ProjectIDs:["01_myproject_mk", "5.0client_singleserv_admin", "5.0client_singleserv_nonadmin", "5.0client_singleserv_nonadmin_2", 
5.0client_singleserv_nonadmin_3", "5.2client_singleserv_admin",  "5.2client_singleserv_nonadmin", "affymetrix3ivt_demo", 
alphaservertest", "alphaservertest_updated", "alphaservertest_updated_2", "matts server", "myproject2"], 
TotalProjectCount:7134

Hint:

  • ProjectPattern and IDPattern can be learned by using Searching History in server explorer. Multiple values can be separated by “,”
  • ProjectPattern= returns all published projects
  • ProjectPattern=PATTERN only returns projects that contains metadata string that starts with PATTERN. It won't recognize the metadata string that have PATTERN in the middle or end.
  • A trick is to return all projects, then perform regular expression in a scripting language to refine the list.

Running using ExecuteCommand

Begin ExecuteCommand /Namespace=Server;
Server "tcp://192.168.1.36:8065" /UserID=admin /Password=xxxxx;
Command IA_SearchPublishedProjects;
Options
"
ProjectPattern=
";
OutputFile "/Users/xxx/projectlist.txt"; 
End;
Tips.pngThe oscript needs to run in Oshell -- Please see this article for [running oscript in Oshell]