Product Selector

Fusion 5.12
    Fusion 5.12

    Solr Query Language Cheat Sheet

    This cheat sheet is a quick reference to the Solr query language. Use this syntax when querying Fusion via the Query API

    There are two ways to query a Fusion collection using the parameters below:

    Wildcards and regular expressions are supported.

    Wildcards

    • ?

      Single-character wildcard

    • *

      Multi-character wildcard

    Common query parameters

    q

    The full Solr query, using Lucene query syntax.

    fq

    Filter query. A query string that limits the query results without influencing their scores.

    sort

    Sort field/direction. The field on which to sort, followed by a space and direction (desc or asc). You can specify multiple sort fields like this: sort=title asc,year desc

    rows

    Max results per page. This set the "page size" for paginated search results.

    start

    Pagination offset. The number of results to skip, for pagination purposes.

    fl

    Field List. The list of fields to return in the query results.

    wt

    Response writer. Select the response format by specifying one of Solr’s response writers.

    Query examples

    Search only the title field in the "docs" collection for the term "solr", and format the results as JSON:
    http://localhost:8764/api/query-pipelines/default/collections/docs/select?q=solr&fl=title&wt=json