- Enter query parameters in the Query Workbench or the Quickstart.
- Append query parameters to the
/query/{id}endpoint.
Wildcards
Wildcards and regular expressions are supported.?Single-character wildcard*Multi-character wildcard
Escape characters
Some characters in query fields must be escaped using a backslash\. Adding \ before the following includes them in the query as literal values:
?*\/"
Queries against facets are case sensitive.
Common query parameters
Query examples
- Search only the
titlefield in the “docs” collection for the term “solr”, and format the results as JSON:
Replace
EXAMPLE_COMPANY with the name provided by your Lucidworks representative.-
Use the following query with wildcards and character escaping in the Query Workbench to search for both
BLU RAY MOVIESandCAMERAclasses in theVIDEO/CDandPHOTO/CAMERAdepartments:class_s:*RA* AND department_s:*O\/C*
- Use a movie collection to select the movie ID and rating where the rating is equal to 4.
- Search for movies with “black” in the title, starting at the 20th result for pagination, then return the results as XML: