Running a search against the data in a Partition is almost exactly the same as running any other query. The difference you'll notice is the speed at which results are returned, especially if you're searching over a large amount of data.
There are several ways to run a search against a Partition; you don't need to change the way you interact with your data in order to see quicker search results.
Partitions can be searched any of the following ways:
- In the Search page.
- From a saved search.
- From a search in the Library.
- From the Manage > Partitions page.
Queries that contain Partitions can be used in saved and scheduled searches, as Dashboard Panels, and as published or saved searches.
Run a search against a Partition through the Partitions page
- Go to Manage > Partitions.
- Do one of the following:
- Click Search to the right of the Index Name. This launches a search on just the data indexed in the Partition.
- Click Search to the right of the Routing Expression. This launches a search that runs the expression against the Partition, as well as any other logs that match the query. This means that you can capture search results on all data, not just the data indexed in the Partition.
Why did I get a message to run a search against a Partition?
After starting a search that would return faster results if the query were run against a Partition, you’ll see a message appear under the search bar that includes a link to the recommended, optimized search.
When the link opens the optimized search in a new search tab, run the search by hitting the Enter/Return key or by clicking Start in the Search page. By default, the optimized search uses the same time range as your original search.