|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
com.endeca.infront.assembler.BasicContentItem
com.endeca.infront.cartridge.SearchAdjustmentsConfig
public class SearchAdjustmentsConfig
SearchAdjustmentsHandler configuration model.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.endeca.infront.assembler.BasicContentItem |
|---|
getBooleanProperty, getIntProperty, getLongProperty, getType, getTypedProperty, setType |
| Methods inherited from class java.util.HashMap |
|---|
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Constructor Detail |
|---|
public SearchAdjustmentsConfig()
public SearchAdjustmentsConfig(String pType)
pType - a value that will be used as the typeBasicContentItem.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:
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||