Map Indices
Once we have loaded some data in to the collection we must create some indices that we can use for our queries.
The simplest index is one that includes all documents. Following on from the previous example extracted from the blog site settings here is an index called all
using the documents loaded from the posts
data provider:
[]
= "*"
The wildcard character *
is special and indicates that the index should include all documents.
Suppose we only wanted to include pages that have a description
in our collection index we could specify the key:
[]
= "description"
It is possible to use dot-style property access for the key
to address nested properties:
[]
= "taxonomies.tags"
Which includes only documents that have some tags defined.