searchlight

search facet list

List Searchlight Facet.

openstack search facet list
    [--sort-column SORT_COLUMN]
    [--type <resource-type>]
    [--limit-terms <limit>]
    [--all-projects]
--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

--type <resource-type>

Get facets for a particular resource type

--limit-terms <limit>

Restricts the number of options returned for fields that support facet terms

--all-projects

Request facet terms for all projects (admin only)

This command is provided by the python-searchlightclient plugin.

search query

Search Searchlight resource.

openstack search query
    [--sort-column SORT_COLUMN]
    [--json]
    [--type [<resource-type> [<resource-type> ...]]]
    [--all-projects]
    [--source [[<field>,...]]]
    <query>
--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

--json

Treat the query argument as a JSON formatted DSL query.

--type <resource-type>

One or more types to search. Uniquely identifies resource types. Example: –type OS::Glance::Image OS::Nova::Server

--all-projects

By default searches are restricted to the current project unless all_projects is set

--source [<field>,...]

Whether to display the json source. If not specified, it will not be displayed. If specified with no argument, the full source will be displayed. Otherwise, specify the fields combined with ‘,’ to return the fields you want. It is recommended that you use the –max-width argument with this option.

query

Query resources by Elasticsearch query string or json format DSL. Query string example: ‘name: cirros AND updated_at: [now-1y TO now]’. DSL example: ‘{“term”: {“name”: “cirros”}}’. See Elasticsearch DSL or Searchlight documentation for more detail.

This command is provided by the python-searchlightclient plugin.

search resource type list

List Searchlight Resource Type (Plugin).

openstack search resource type list [--sort-column SORT_COLUMN]
--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

This command is provided by the python-searchlightclient plugin.