DISCO search sampling allows you to search for a randomized subset of documents within an entire set or any subset
To perform a search sample, in the search bar, run one of the following search queries:
- sample(0.1, “any query”) – Returns a 10% of search results set
- sample(500, “any query”) – Returns a maximum of 500 documents from search results set
- sample(10%, “any query”) – Returns a 10% of search results set
Within the parentheses, enter any valid search query. For example, to sample 10% of your entire database, enter the search sample(0.1,”!”), the exclamation point being a wildcard that means to search all documents. However, if you would like to search for a randomized 10% of all documents containing the word flowers, change the search to sample(0.1,flowers).
Some important items to note:
- IF you search or refresh the page, it will give you a new random subset of documents.
- IF you give it a number that is more than the search results, it will give you the total number of search results.
- IF you use the sample query, sort order for search results is disabled.
This feature is available in select new databases created on or after August 22, 2015.