Package com.liferay.portal.kernel.search
Class QueryConfig
Object
com.liferay.portal.kernel.search.QueryConfig
- All Implemented Interfaces:
Serializable
- Author:
- Michael C. Han
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addHighlightFieldNames
(String... highlightFieldNames) void
addSelectedFieldNames
(String... selectedFieldNames) getAttribute
(String name) int
String[]
int
int
int
int
int
String[]
String[]
String[]
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
removeAttribute
(String name) void
void
setAttribute
(String name, Serializable value) void
setCollatedSpellCheckResultEnabled
(boolean collatedSpellCheckResultEnabled) void
setCollatedSpellCheckResultScoresThreshold
(int collatedSpellCheckResultScoresThreshold) void
setHighlightEnabled
(boolean highlightEnabled) void
setHighlightFieldNames
(String... highlightFieldNames) void
setHighlightFragmentSize
(int highlightFragmentSize) void
setHighlightRequireFieldMatch
(boolean highlightRequireFieldMatch) void
setHighlightSnippetSize
(int highlightSnippetSize) void
setHitsProcessingEnabled
(boolean hitsProcessingEnabled) void
void
setQueryIndexingEnabled
(boolean enabled) void
setQueryIndexingThreshold
(int queryIndexingThreshold) void
setQuerySuggestionEnabled
(boolean querySuggestionEnabled) void
setQuerySuggestionMax
(int querySuggestionMax) void
setQuerySuggestionScoresThreshold
(int querySuggestionScoresThreshold) void
setScoreEnabled
(boolean scoreEnabled) void
setSearchSubfolders
(boolean searchSubfolders) void
setSelectedFieldNames
(String... selectedFieldNames) void
setSelectedIndexNames
(String... selectedIndexNames) void
setSelectedTypes
(String... selectedTypes)
-
Field Details
-
LOCALE
- See Also:
-
SEARCH_SUBFOLDERS
- See Also:
-
-
Constructor Details
-
QueryConfig
public QueryConfig()
-
-
Method Details
-
addHighlightFieldNames
-
addSelectedFieldNames
-
getAlternateUidFieldName
-
getAttribute
-
getAttributes
-
getCollatedSpellCheckResultScoresThreshold
public int getCollatedSpellCheckResultScoresThreshold() -
getHighlightFieldNames
-
getHighlightFragmentSize
public int getHighlightFragmentSize() -
getHighlightSnippetSize
public int getHighlightSnippetSize() -
getLocale
-
getQueryIndexingThreshold
public int getQueryIndexingThreshold() -
getQuerySuggestionMax
public int getQuerySuggestionMax() -
getQuerySuggestionScoresThreshold
public int getQuerySuggestionScoresThreshold() -
getSelectedFieldNames
-
getSelectedIndexNames
-
getSelectedTypes
-
isAllFieldsSelected
public boolean isAllFieldsSelected() -
isCollatedSpellCheckResultEnabled
public boolean isCollatedSpellCheckResultEnabled() -
isHighlightEnabled
public boolean isHighlightEnabled() -
isHighlightRequireFieldMatch
public boolean isHighlightRequireFieldMatch() -
isHitsProcessingEnabled
public boolean isHitsProcessingEnabled() -
isQueryIndexingEnabled
public boolean isQueryIndexingEnabled() -
isQuerySuggestionEnabled
public boolean isQuerySuggestionEnabled() -
isScoreEnabled
public boolean isScoreEnabled() -
isSearchSubfolders
public boolean isSearchSubfolders() -
removeAttribute
-
setAlternateUidFieldName
-
setAttribute
-
setCollatedSpellCheckResultEnabled
public void setCollatedSpellCheckResultEnabled(boolean collatedSpellCheckResultEnabled) -
setCollatedSpellCheckResultScoresThreshold
public void setCollatedSpellCheckResultScoresThreshold(int collatedSpellCheckResultScoresThreshold) -
setHighlightEnabled
public void setHighlightEnabled(boolean highlightEnabled) -
setHighlightFieldNames
-
setHighlightFragmentSize
public void setHighlightFragmentSize(int highlightFragmentSize) -
setHighlightRequireFieldMatch
public void setHighlightRequireFieldMatch(boolean highlightRequireFieldMatch) -
setHighlightSnippetSize
public void setHighlightSnippetSize(int highlightSnippetSize) -
setHitsProcessingEnabled
public void setHitsProcessingEnabled(boolean hitsProcessingEnabled) -
setLocale
-
setQueryIndexingEnabled
public void setQueryIndexingEnabled(boolean enabled) -
setQueryIndexingThreshold
public void setQueryIndexingThreshold(int queryIndexingThreshold) -
setQuerySuggestionEnabled
public void setQuerySuggestionEnabled(boolean querySuggestionEnabled) -
setQuerySuggestionMax
public void setQuerySuggestionMax(int querySuggestionMax) -
setQuerySuggestionScoresThreshold
public void setQuerySuggestionScoresThreshold(int querySuggestionScoresThreshold) -
setScoreEnabled
public void setScoreEnabled(boolean scoreEnabled) -
setSearchSubfolders
public void setSearchSubfolders(boolean searchSubfolders) -
setSelectedFieldNames
-
setSelectedIndexNames
-
setSelectedTypes
-