Config

Article Search needs to be configured with Content-Agent, ICP and Writer providers and endpoints.

  • go to Plugins > Article Search > settings > Configurations

  • add your own config inside the configEditor field.

Article Search also needs to be configured with requirements in Mappings section

  • go to Plugins > Article Search > settings > Mappings

  • select all the required actions by selecting from the dropdown for each required action.

Advanced feature

example

In your config object you can add your Slug OC-Property in propertiesToFetch and map it in propertyMappings as a slugline

{
    ...
    "propertiesToFetch": [
        "...",
        "Slug",
        "..."
    ],
    "propertyMappings": [
        {...},
        {
            "startpageField": "slugline",
            "ocProperty": "Slug"
        },
        {...}
    ]
    ...
}

results

article-search-slugline

Fetch article avatars

Sort order for SuggestSearch

In the configuration there is possibility to add a 'weight' on a suggest-property. The list is sorted descending, high -> low

specify with autoSearch to start searching when the plugin has been loaded

Specify which OC property to use for sorting.

Specify results per page

Specify default query that is set when no active suggestions are present

Specify filter query that is added onto the suggestions query and final search query

OC Configuration

Article Search plugin requires that some properties are configured in OpenContent.

Note: There should also be a property with an updated value. We are currently using the default OC property called updated

Properties

Sorting

Currently the Article Search uses the updated field to make sorting, so this MUST be present

Examples in images

Last updated

Was this helpful?