public class SearchAdjustmentsConfig
extends BasicContentItem
SearchAdjustmentsHandler configuration model.| Constructor and Description |
|---|
SearchAdjustmentsConfig()
Creates a SearchAdjustmentsConfig with the following default settings:
phraseSuggestionEnabled = false
spellSuggestionEnabled = false
|
SearchAdjustmentsConfig(ContentItem pContentItem)
Creates a copy of the specified
ContentItem, and returns it as an instance of
SearchAdjustmentsConfig. |
SearchAdjustmentsConfig(String pType)
Creates a SearchAdjustmentsConfig with the specified type and
the following default settings:
phraseSuggestionEnabled = false
spellSuggestionEnabled = false
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isPhraseSuggestionEnabled() |
boolean |
isShowWordInterp() |
boolean |
isSpellSuggestionEnabled() |
void |
setPhraseSuggestionEnabled(boolean phraseSuggestionEnabled)
If phrase suggestion is enabled, the MDEX may suggest that the user would get
better search results by grouping 2 or more words as a phrase.
|
void |
setShowWordInterp(boolean showWordInterp)
Specifies that the SearchAdjustments cartridge should populate the interpreted terms.
|
void |
setSpellSuggestionEnabled(boolean spellSuggestionEnabled)
If spell suggestion is enabled, the MDEX may suggest that the user would get
better search results by using an alternate spelling.
|
public SearchAdjustmentsConfig()
public SearchAdjustmentsConfig(String pType)
pType - a value that will be used as the type#getType()public SearchAdjustmentsConfig(ContentItem pContentItem)
ContentItem, and returns it as an instance of
SearchAdjustmentsConfig. If any of the following settings do not exist in
the input ContentItem, then the default values listed below will be used if
the settings are queried:
public boolean isPhraseSuggestionEnabled()
true.setPhraseSuggestionEnabled(boolean)public void setPhraseSuggestionEnabled(boolean phraseSuggestionEnabled)
phraseSuggestionEnabled - whether to return phrase suggestionspublic boolean isSpellSuggestionEnabled()
false.setSpellSuggestionEnabled(boolean)public void setSpellSuggestionEnabled(boolean spellSuggestionEnabled)
Typically, the engine will auto correct or auto apply a suggestion if there are 0 results found for the user's search, but provide a suggestion if the users search returns a small number of results, but there are many more results for an alternative spelling.
spellSuggestionEnabled - whether to return SPELL suggestionspublic boolean isShowWordInterp()
SearchAdjustments model will contain interpreted terms for debugging.
Default value is false. Note that it is not sufficient for this method to return true;
the dgraph must also have been started with the --wordInterp flag.setShowWordInterp(boolean)public void setShowWordInterp(boolean showWordInterp)
--wordInterp flag. Setting this value just controls whether or not
the information is added to the returned SearchAdjustments model object.showWordInterp - whether to return interpreted termsSearchAdjustments.getInterpretedTerms()Copyright © 2014, Oracle and/or its affiliates. All rights reserved.