You can create saved searches that are filed as a search folder that runs when opened, or by using administrative tools. You can do administrative tasks for saved searches, such as list, view, modify, delete, verify, or run a saved search.
You must also configure ACLs, libraries, and item types for users. You must adjust the access control for the saved search item type to provide read access to run the saved search. You can create or edit ACLs and change the ACL settings for the ClbSavedSearch item type by using the system administration client.
You can select whether you want to initialize all predefined saved searches, create a subset of the list of predefined searches, or select any particular predefined saved search to use. Some predefined search queries might return large number of results and run slowly. For some applications, the search is truncated at a maximum number of results. When you use administrative tools to run searches, you can override the configuration settings for maximum number of search results by using the m or max option.
All predefined saved searches are defined to be displayed in all libraries. The predefined saved searches are initially created with English names, titles, and descriptions, but you can edit the name, title, or description by using the SavedSearchAdmin and Browser tools. The initial set of predefined searches is not created during installation, but the searches can be initialized at any time by using the SavedSearchAdmin tool. You can review the full list of predefined saved searches and even if you renamed a search, you can identify which searches were created, are new, or are not created. You can also use the SavedSearchAdmin or Browser tools to edit any existing saved searches. Predefined saved searches are visible only to administrators by using the administrative tools and provide examples. The users can see saved searches as folders only if you create and save a search as a folder.
You can reuse existing saved searches if the search that runs the same query as you want but is not accessible by a user who needs it. For example, if you have a saved search that contains the query, instead of copying it, you can reuse it by changing the ACL or the scope of the search. You can browse the saved searches and see what the ACLs are set to, and whether they are filed in a location that is accessible to the intended users. Then, you can decide whether you want to create another saved search or edit the permissions and scope for the intended users.
Search folders run only when opened through an application that uses IBM CMIS for Content Manager. In other applications, the search folder appears as a blank folder. This tool detects the incorrect search folder usage by other applications as a real blank folder. After you confirm, the tool automatically removes the improper relationships.
You can administer saved searches from other applications if the application supports editing the saved item type and you file the search folder where you can access it.
In an interactive mode, the tool prompts you for all required options. You can also run the tool in a silent mode by specifying the options and values. You can use either the single character or the full name of the option.
To display a list of available options, enter java com.ibm.content.cm.tools.SavedSearchAdmin -? or java com.ibm.content.cm.tools.SavedSearchAdmin -help.
To run the SavedSearchAdmin tool:
If you set the f or fix option to true, the tool automatically fixes the incorrect folder relationships. However, if the option is set to false, the tool prompts you whether you want to delete the incorrect folder relationships. Depending on your choice, the SavedSearchAdmin removes all incorrect folder relationships.
To silently create all predefined saved searches that are not yet created, specify the query option with value \"PREDEFINED\" instead of specifying a specific query.
Operating system | Code sample |
---|---|
Linux or UNIX systems | ./configure-repository.sh SavedSearchAdmin |
Windows | configure-repository.bat SavedSearchAdmin |
java com.ibm.content.cm.tools.SavedSearchAdmin -r icmnlsdb
-u icmadmin -p password -o SCHEMA=ICMADMIN -f true -z true -a
create -l "Documents I Created in Last 3 days" -t
"Documents I Created in Last 3 days" -d "no description"
-scope all -grp "default group" -lib "default library" -pf UNFILED -h false
-sf false -listed true -shared true -acl PublicReadACL
-q "/*[@SEMANTICTYPE!=2 AND @CREATEUSERID=\"icmadmin\"
AND @CREATETS>\"{DATETIME_OFFSET(-,0000,00,03,00,00,00)}\"]"