Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

In case you are upgrading to version 9.7 or higher and want to benefit from the full text search the aggregates that you already have stored in DB database must be indexed.

Step-by-step guide to add the service

  1. In Studio add a custom service named AQ_Aggregate_Index_Migrate
  2. The service definition looks like this:
    Image Modified

  3. The aggregateId is always required.
    The aggregate version is optional. In case this is not specified, the latest version of an aggregate will be indexed.
     

    This service throws only one event: AppException

    We need a service that is able to update an aggregate. This service has following parameters:

     

    ParameterDirectionValueData TypeDescriptionFill
    AggregateTypeInputModule ElementAggregateSelect the aggregate that you want to update.Required
    AggregateIDInputExpressionIntegerPlease provide the attribute containing the ID of the aggregate entry to index.Required
    AggregateVersionInputExpressionIntegerIf a specific version of the aggregate needs to be updated. If not provided then the latest one is updated. 
    StoreInstancesInputExpressionEntity  

     

    Event NameEvent TypeDescription
    AppExceptionCancelThe service takes this exit if indexing failed for some reason.

    Image Added



The service you defined can be use in a flow like this:

 

  • A project that wants to index the aggregates has to create an exposed migration flow.
  • In this flow you first call the AQ_AggregateRead to load the existing aggregates into the profile.
  • The next step is to use the AQ_Aggregate_Index_Migrate service to add the aggregate index.
  • The flow must be exposed, and should be called for every aggregate Id in the database. It can be passed as a parameter in the URL, and retrieved from there with the BB_SetRequestParameters service.




Related articles appear here based on the labels you select. Click to edit the macro and add or change labels. Note: the article itself also appears as related article, this is a known limitation.

UI Expand
titleRelated articles

Content by Label
showLabelsfalse
max5
spacesBKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ("aggregate","search","migration") and type = "page" and space = "BKB"
labelssearch aggregate migration

...