Querying Content in Crafter CMS

Types of Content Queries
Crafter CMS supports 3 specific types of content queries:

Cross-content Lucene/Solr queries. This enables you to query any/all content objects, by any group of properties.
Filtered Structural Queries. This enables you to query against the repository structure, e.g. “Get all articles by author XYZ.”
Content Item specific query. This enables you to write queries inside of a given content item.

Type 1: Make a Lucene/Solr Query
The following code examples use the Crafter Search Service in Crafter Engine to get content. You can find the interface for this service HERE.

Link: https://dzone.com/articles/querying-content-in-crafter-cms?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev