Search Scripting

Search scripting helps you combine search queries with identifiers assigned to each search query. So you can prepare your final search strategy in steps rather than having to formulate the large search in a single go. Each search added to a script is given an identifier and search identifiers can be combined using AND, OR and NOT in Command Line Search.

The Search Scripts can be seen by enabling Saved Search Checkbox on the Search Form page.

The overall process of search scripting works in the following manner:

  1. Enter your Search on either Quick / Command line /Non-Latin Search form
  2. Select the appropriate filters to cater your search.
  3. Enable/ Disable the Saved Search Script option.
  4. You will see the search is added to a search script that is shown in a separate window on the right. You can pin the “Script” window so that it remains on top always.
  5. The First search is assigned an identifier “L1”
  6. Further searches that you conduct will be given successive identifiers L2, L3 and so on. 
     

7. In command line search form you can now easily use these identifiers to build further queries. For example you can enter queries like (L1 AND L2) NOT L3. 
 

8. You can even combine the queries by using their identifiers separated with the operators by directly clicking on the ENTER button once you have entered it in the bar beside the Combine Queries option.

9. You can also create a search script directly in the command line search form without having to save separate queries in the script.

10. You just need to simply add a semi-colon (;) after each query and start with a new line to enter the next query, and can also combine them by using their occurrence number, like 1 OR 2.

11. Once your final query is run, click on the search icon next to the query in the script in order to jump to the results. 

12. You can rename or delete a search script or you can also add the query to a new search script. 

13. Here, you can also create an alert for your search or you can remove the query from the search script. 

A search script that you start preparing is by default stored under the name “Untitled”. Even if you log out and come back later you will be able to see it under “Untitled”. This is similar to how opening new word document gives it a default name. You can Rename and save the script into an appropriate name.

All saved search scripts can be seen under the “Saved Searches” tab.

Now you can see the complete query in the Search Script view. Further you can quickly scan through all the independent /dependent search scripts within saved search. When you do place your mouse over a query, it will show you all the dependent queries. You can also pin down a particular query to browse its dependents properly using the red colored pin next to the query identifier.

Note: You can also refer our training video on "Search Scripting" in "Video Tutorial" Section 

Creating a script from Search History

In search history select a query and then click on Add option. Further you will be able to add the query to a Saved Search Script and save the search. 

Clone script to another user

You can also clone the search script and share with your colleagues or co-workers 

You just need to click on the 3 dots and select the "Clone" option, and enter the email id of the person you want to share the script with. 

This will exactly replicate all settings (e.g., dedup settings) that you have done while creating the search script. 

 

Important Notes:

  • You can remove an entry from a search script. Such an action will also remove any other entries that dependent on it. For instance if you remove L2 and lets say that L6 = L2 AND L4, then L6 is also going to be deleted.
  • A new Search identifier will always be one more than the highest search identifier. Deleted search identifiers are not reused in the same script.
  • You can not combine queries across different search scripts.
  • If you have combined identifiers from the same search script, you would be able to view the query formed along with the script name within current search.
  • Search query ID cannot be combined with Script ID in command line search.
  • The proximity operators i.e., 'w', 'wd', 'ws', 'wp' can not be used when searching using Search script IDs
  • The search scripts can only be shared within your company or organization who has PatSeer account.