Contensis CMS search allows contextual search queries to be initiated using a simple user interface. This article outlines how it can be used.
Create a filter
Filters are the core component of a contensis search and are usually made up of three parts.
The property determines what ZenQL should be looking at to begin its search. There are a number of properties to filter content in Contensis; by text, creation and modified dates, by author, file details such as size or name, properties such as Include in Search the path content may exist in even down to metadata values set against them, a full list is provided below.
Operator will update based on the property you set, these include values such as Equal To (=), Not Equal to (!=), Less Than (<), Greater Than (>). These operators allow you to refine your search in a more granular way.
Depending on the type of property you are using, the input will vary allowing you to easily select from drop down lists, tag selectors, using an autosuggest or by simply entering a text or numeric value.
Set the project
If you have more than one project in Contensis you’ll be able to set the project you wish to search against. By default the search will automatically be set to the current project. This option is not present when you only have a single project instance.
- Select a property: using the drop down list select a property to search upon.
- Set the type of operator: the property you selected in the first step will determine the operator values that you see. The default is usually ‘Equal to’ which is set automatically.
- Once the operator is set you’ll then be able to set a value. The value field supports various input types depending on the property. So for example, if you’ve selected a date you will find a date picker, tags then a tag selector will be present allowing you to make multiple selections.
- Once you’ve set the filter criteria, click the + button and the search will begin.
Example: Property: Content Type > Operator: Equal to > Value: Image
Extend the search to include multiple filters
By adding one or more filters, you can extend the search further, and then filter the content that is currently displayed in the search results area.
To do this select a new property, operator and value and then click add. The filter will be appended to the query and the search results will update.
Example: Property: File Size (KB) > Operator: Greater Than > Value: 2048
Edit a filter
Having set up multiple filters to carry out a search, you may want to edit a value or operator you previously set to change the results that are currently displaying.
Click the filter in the query builder, its colour will change to indicate it’s been selected.
On selection the values set on the filter are populated in the query drop downs allowing you to update their values.
The plus button also updates to a tick, allowing you to approve the changes applied to the filter.
Once the approve button has been pressed the results will update in according to your amended filter settings.
Example: Property: File Size (KB) > Operator: Less Than > Value: 1048
Reset the search
If your search query is getting particularly large or does not return the results as expected you can simply click ‘Clear Filters’ above the filters to reset your search criteria.
You can use the export button above the search results to export your current search to a CSV file, which can be useful when carrying out a content audit or for simple reporting.