Queries & Suggestions

Setup base queries for the different types as well as suggest fields to use

Event

Base query

The base query for Events

contenttype: Event

Event suggest fields + sort order

The fields to use when using suggest search

{
    "name": 0, //{1}
    "section": 0 //{1}
}
  1. Left part is a property mapping key to fetch while the following number is a rank weight in order to sort the results. Higher number equals higher sorting order

Event labels

{
    "_all": "Free text", //{1}
    "name": "Name", //{1}
    "section": "Section" //{1}
}
  1. A mapping from key to a Label, left part is the key specified in the fields config while the right part is the translated label to display in result

PlanningItem

Base query

The base query for Planning Items

Planning Item suggest fields + sort order

The fields to use when using suggest search

  1. Left part is a property mapping key to fetch while the following number is a rank weight in order to sort the results. Higher number equals higher sorting order

Planning Item labels

  1. A mapping from key to a Label, left part is the key specified in the fields config while the right part is the translated label to display in result

Assignment

Base query

The base query for Assignments

Planning Item suggest fields + sort order

The fields to use when using suggest search

  1. Left part is a property mapping key to fetch while the following number is a rank weight in order to sort the results. Higher number equals higher sorting order

Planning Item labels

  1. A mapping from key to a Label, left part is the key specified in the fields config while the right part is the translated label to display in result

Article

Base query

The base query for Article

Article Item suggest fields + sort order

The fields to use when using suggest search

  1. Left part is a property mapping key to fetch while the following number is a rank weight in order to sort the results. Higher number equals higher sorting order

Article labels

  1. A mapping from key to a Label, left part is the key specified in the fields config while the right part is the translated label to display in result

Article date options

Used to allow date search in linked articles modal. Value pointing to the model key in Article mapping.

Last updated

Was this helpful?