Building optimized URLs with the Assembler API requires passing in the necessary configuration and instantiating the required objects.
The high-level process is as follows:
Set up your basic application configuration with a
BasicQueryBuilder
andSeoUrlFormatter
.How you create and configure the
QueryBuilder
andUrlFormatter
may vary depending on your application, but they should be should be scoped at a global or application level.Handle requests by parsing the incoming query and sending it to an MDEX Engine.
Modify the
UrlState
object by adding or removing URL parameters.