get_facets
Count SciX search results by facets such as author, year, or keywords to narrow a query; each bucket includes a filter value for refining results.
Instructions
Count how SciX search results break down across facets, to narrow a search. Covers author, collections, refereed, institutions, keywords, publications, bibgroups, SIMBAD objects, NED objects, award, data, Vizier tables, publication type, planetary features, UAT concepts, and year. Each returned bucket carries a ready-to-use filter_query value to pass back to search, and hierarchical facets (author, institutions, objects, award, publication type, planetary) report a child_prefix for drilling deeper.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | Bucket ordering: by count, or by value ("index") | count desc |
| limit | No | Maximum buckets returned per facet | |
| query | Yes | SciX search query to facet over, using Solr syntax | |
| facets | No | Facets to count. Available: author, collections, refereed, institutions, keywords, publications, bibgroups, simbad, ned, award, data, vizier, pubtype, planetary, uat, year | |
| prefix | No | Drill into a hierarchical facet by restricting buckets to this prefix, e.g. "1/Smith, J/". Use the `child_prefix` returned for an expandable bucket. Only valid when exactly one facet is requested. | |
| filter_query | No | Solr filter queries (fq), each applied independently and ANDed together, e.g. author_facet_hier:"0/Smith, J". Use the `filter` value returned by get_facets. | |
| response_format | No | markdown |