XML Configuration Reference : Search : SuggestDispatcher
 
SuggestDispatcher
com.exalead.mercury.mami.search.v20.SuggestDispatcher
A SuggestDispatcher associates prefix handlers to Suggests. It may be used by the SuggestCommand to dispatch a relevant part of a query to the right suggest. For example, given a query "title: test", it will send "test" to the Suggest attached to the "title" prefix handler.
Parent elements:
com.exalead.mercury.mami.search.v20.SuggestConfig (as SuggestConfig)
Attributes:
Name
Type
Default value
Description
name
string
The mandatory suggest dispatcher name. Must match [A-z0-9_]+
matchWholeQuery
boolean
Sends the whole query to the default suggest if the cursor is outside a prefix handler. If unselected, it sends a subquery delimited by surrounding prefixes.
useWithUnknownPrefix
boolean
Sends the query to the default suggest if the cursor is within an undefined prefix handler. If unselected, undefined prefix handlers are ignored and there will be no suggestions.
addQuotes
boolean
True
Adds quotes where necessary so that the whole suggestion is included in the prefix handler.
displayPrefixInSuggest
boolean
When activated, the suggest is prefixed by the corresponding prefix handler if defined.
maxNbResults
int
Max number of suggest entries returned by this suggest dispatcher (0 returns all available entries).
boostVariety
boolean
Allows to retrieve the best matches for each suggest according to the maximum number of suggestions. Note that this mode does not always return the best global results.
Nested elements:
Name
Type
Description
designedForLogics
exa.bee.StringValue*
SearchLogic names. Prefix handler names will be checked against these logics
PrefixHandlerSuggestPair
com.exalead.mercury.mami.search.v20.PrefixHandlerSuggestPair*
Association of a prefix handler and a suggest