You can configure the order in which records appear in results lists by creating relevance ranking strategies. You configure separate relevance ranking strategies for record searches and dimension searches.
Configuring a relevance ranking strategy for record searches
You configure a relevance ranking strategy for record searches by
editing the following properties of the
resultsListDefaultConfig
bean in
assembler-context.xml
:
<property name="relRankKey" value="All" /> <property name="relRankMatchMode" value="ALLPARTIAL" /> <property name="relRankStrategy" value="nterms,maxfield,exact, static(product.analytics.conversion_rate,descending)">
The three properties have the following meanings:
relRankKey
Specify the name of the search interface that you specify as the value of thedefaultSearchKey
property of thenavigationStateBuilder
component inassembler-context.xml
.relRankMatchMode
(Optional) The match mode that determines the subset of results to which Relevance Ranking applies. The possible values are: MatchAll, MatchPartial, MatchAny, MatchAllAny, MatchAllPartial, MatchPartialMax, and MatchBoolean. For more information, see Configuring matches. If you specify a value for this property, you must also specify a value for relRankStrategy.Note
MatchBoolean is useful only for applications whose users know how to enter boolean-formatted queries. It is not appropriate for eCommerce websites. The MatchBoolean match mode has negative interactions with relevancy ranking, processing rules, and other aspects of MDEX engine query processing.
relRankStrategy
(Optional) A relevance ranking strategy is a list of one or more relevance ranking modules that specify sorting criteria for the records that are returned in the search interface result list. For more information, see Relevance ranking modules.Note
Recommended practice is to specify a relevance ranking strategy; if you do not specify one, the order of the records is random.
Configuring a relevance ranking strategy for dimension searches
You configure a relevance ranking strategy for dimension searches by
editing the following properties of the
dimensionSearchResultsDefaultConfig
bean in
assembler-context.xml
:
<property name="relRankStrategy" value="exact,static(nbins,desc)" />
where
exact
,
static
,
nbins
, and
desc
are relevance ranking modules. For more
information, see
Configuring
matches.
Configuring a relevance ranking strategy for individual queries
At the MDEX Engine query level, relevance ranking strategies can be selected to override the default specified for the selected search interface. This makes it possible to configure relevance ranking for individual queries.
For information about URL query parameters for relevance ranking, refer to the Oracle Commerce Guided Search MDEX Engine Developer's Guide.