com.filenet.api.query
Class SearchTemplateContent
- java.lang.Object
-
- com.filenet.api.query.SearchTemplateContent
-
- All Implemented Interfaces:
- java.io.Serializable
public class SearchTemplateContent extends java.lang.Object implements java.io.SerializableIdentifies the content search settings in a search template that can be modified for runtime purposes and enables you to choose whether the search template settings or the property values specified for this class are to be used for the search.The SearchTemplate* classes (those classes prefixed with "SearchTemplate") enable you to control and specify runtime modification of search template data.
- See Also:
SearchTemplateContentItem, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description SearchTemplateContent()
-
Method Summary
Methods Modifier and Type Method and Description java.util.List<SearchTemplateContentItem>getContentItems()Retrieves the list of content search items to be used for the search.java.lang.IntegergetContentQueryDynamicThreshold()Retrieves the dynamic threshold value that determines the content search optimization to use, content first or database first.java.lang.IntegergetContentQueryMaximumRecords()Retrieves the maximum records setting to be used by the content search.ContentQueryOptimizationgetContentQueryOptimization()Retrieves the kind of optimization used for the content search, content first, database first, or dynamic threshold.java.lang.BooleangetRank()Retrieves a Boolean value indicating whether content search rank is to be used for the search.java.lang.BooleangetSummary()Retrieves a Boolean value indicating whether content search summary is to be used for the search.voidsetContentItems(java.util.List<SearchTemplateContentItem> contentItems)Specifies the content search items to be used for the search.voidsetContentQueryDynamicThreshold(java.lang.Integer contentQueryDynamicThreshold)Specifies the dynamic threshold value that determines the content search optimization to use, content first or database first.voidsetContentQueryMaximumRecords(java.lang.Integer contentQueryMaximumRecords)Specifies the maximum number of records to be returned by the content search.voidsetContentQueryOptimization(ContentQueryOptimization contentQueryOptimization)Specifies the kind of optimization used for content search, content first, database first, or dynamic threshold.voidsetRank(java.lang.Boolean rank)Specifies whether content search rank is to be used for the search.voidsetSummary(java.lang.Boolean summary)Specifies whether the content search summary is used for the search.
-
-
-
Method Detail
-
getRank
public java.lang.Boolean getRank()
Retrieves a Boolean value indicating whether content search rank is to be used for the search.- Returns:
- A
Booleanvalue offalseornullif the content search rank value in the search template is to be used;trueif the content search rank value is to be supplied at runtime.
-
setRank
public void setRank(java.lang.Boolean rank)
Specifies whether content search rank is to be used for the search. The value specified here overrides the content search rank setting in the search template. If null, no change is made to the search template.- Parameters:
rank- ABooleanvalue. Iffalseornull, the content search rank setting in the search template is used, iftrue, the content search rank is used for the search.
-
getSummary
public java.lang.Boolean getSummary()
Retrieves a Boolean value indicating whether content search summary is to be used for the search. The summary for the content search is specified using thesetSummarymethod.- Returns:
- A
Booleanvalue offalseornullif the content search summary setting in the search template is to be used;trueif the content search summary is to be used for the search.
-
setSummary
public void setSummary(java.lang.Boolean summary)
Specifies whether the content search summary is used for the search. The value specified here overrides the content search summary setting in the search template. If null, no change is made to the search template.- Parameters:
summary- ABooleanvalue. Iffalseornull, the content search summary setting in the search template is used, iftrue, the content search summary is used for the search.
-
getContentItems
public java.util.List<SearchTemplateContentItem> getContentItems()
Retrieves the list of content search items to be used for the search. The list of content search items is specified using thesetContentItemsmethod.- Returns:
- A
Stringarray (List) of the content search items to be used for the search.
-
setContentItems
public void setContentItems(java.util.List<SearchTemplateContentItem> contentItems)
Specifies the content search items to be used for the search. The content search items specified here overrides the content search items in the search template. If null, no change is made to the list of content search items in the search template.- Parameters:
contentItems- AStringarray (List) specifying the content search items to be used for the search.
-
getContentQueryMaximumRecords
public java.lang.Integer getContentQueryMaximumRecords()
Retrieves the maximum records setting to be used by the content search. The maximum records setting is specified using thesetContentQueryMaximumRecordsmethod.- Returns:
- An
Integerindicating the maximum number of records to be returned by the content search. - See Also:
- Query Result Row Limits
-
setContentQueryMaximumRecords
public void setContentQueryMaximumRecords(java.lang.Integer contentQueryMaximumRecords)
Specifies the maximum number of records to be returned by the content search. The maximum records specified here overrides the maximum records setting in the search template. If null, no change is made to the search template data.- Parameters:
contentQueryMaximumRecords- AnIntegerindicating the maximum number of records to be returned by the content search.- See Also:
- Query Result Row Limits
-
getContentQueryOptimization
public ContentQueryOptimization getContentQueryOptimization()
Retrieves the kind of optimization used for the content search, content first, database first, or dynamic threshold.- Returns:
- A
ContentQueryOptimizationvalue indicating the kind of optimization to use for the content search. - See Also:
- CBR Query Optimization
-
setContentQueryOptimization
public void setContentQueryOptimization(ContentQueryOptimization contentQueryOptimization)
Specifies the kind of optimization used for content search, content first, database first, or dynamic threshold. If you specify dynamic threshold, then you must also call thegetContentQueryDynamicThresholdmethod.- Parameters:
contentQueryOptimization- AContentQueryOptimizationvalue indicating the kind of optimization to use for the content search. search.- See Also:
- CBR Query Optimization
-
getContentQueryDynamicThreshold
public java.lang.Integer getContentQueryDynamicThreshold()
Retrieves the dynamic threshold value that determines the content search optimization to use, content first or database first.- Returns:
- An
Integervalue that the server uses to compare to its estimated number of CBR hits. - See Also:
- CBR Query Optimization
-
setContentQueryDynamicThreshold
public void setContentQueryDynamicThreshold(java.lang.Integer contentQueryDynamicThreshold)
Specifies the dynamic threshold value that determines the content search optimization to use, content first or database first. The server switches from content first to database first based on an estimated number of CBR hits that it compares to the threshold value.- Parameters:
contentQueryDynamicThreshold- AnIntegervalue that the server uses to compare to its estimated number of CBR hits.- See Also:
- CBR Query Optimization
-
-