public class SearchAdjustmentsRequestParamMarshaller
extends RequestParamMarshaller
SearchSuggestionsHandler
configuration from the parameters present
in a request URL. The following mapping is used:
DYM_ENABLED_PARAMETER
("Nty") -> SearchAdjustmentsConfig.setSpellSuggestionEnabled(boolean)
DYM_ENABLED_PARAMETER
("Nty") -> SearchAdjustmentsConfig.setPhraseSuggestionEnabled(boolean)
The anticipated most common use case is to turn both phrase and spell suggestion on and off at the same time, so this class uses a single URL parameter to control both.
Modifier and Type | Field and Description |
---|---|
static String |
DYM_ENABLED_PARAMETER
Name of request parameter, "Nty", that enables/disables search suggestions.
|
Constructor and Description |
---|
SearchAdjustmentsRequestParamMarshaller()
Creates the marshaller for reading request parameters related
to
SearchAdjustmentsConfig . |
public static final String DYM_ENABLED_PARAMETER
public SearchAdjustmentsRequestParamMarshaller()
SearchAdjustmentsConfig
.Copyright © 2014, Oracle and/or its affiliates. All rights reserved.