Package com.documentum.fc.client.search
Interface IDfSimpleAttrExpression
- All Superinterfaces:
IDfAttrExpression
,IDfExpression
- All Known Subinterfaces:
IDfRelativeDateExpression
Defines a simple search expression on an attribute. (For example, contains, equals, begins with, is null....)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Search operation code: begins with.static final int
Search operation code: contains.static final int
Search operation code: does not contain.static final int
Search operation code: ends with.static final int
Search operation code: equal.static final int
Search operation code: greater than or equal.static final int
Search operation code: greater than.static final int
Search operation code: is not null.static final int
Search operation code: is null.static final int
Search operation code: less than or equal.static final int
Search operation code: less than.static final int
Search operation code: not equal.Fields inherited from interface com.documentum.fc.client.search.IDfAttrExpression
SEARCH_OP_UNDEFINED
Fields inherited from interface com.documentum.fc.client.search.IDfExpression
DATE_FORMAT_DEFAULT, EXPR_TYPE_FULLTEXT, EXPR_TYPE_MLT, EXPR_TYPE_RELATIVE_DATE, EXPR_TYPE_SET, EXPR_TYPE_SIMPLE_ATTR, EXPR_TYPE_UNDEFINED, EXPR_TYPE_VALUE_LIST_ATTR, EXPR_TYPE_VALUE_RANGE_ATTR
-
Method Summary
Modifier and TypeMethodDescriptionIndicates the similarity threshold used with the fuzzy search optionIndicates the thesaurus URI that is used with the thesaurus optiongetValue()
Gets the expected value of the search operation.Indicates if an equals or a not_equals constraint must be exact match constraint.Indicates if fuzzy search will be used to validate this constraintIndicates if the thesaurus option will be used to validate this constraintvoid
setExactMatchEnabled
(Boolean exactMatchEnabled) To evaluate an EQUALS or NOT_EQUALS constraint, an exact match can be done : no stemming, no stop words removal, no thesaurus search or wildcards.void
setFuzzySearchEnabled
(Boolean fuzzySearchEnabled) Fuzzy Search is an option that can be used only with xPlore 1.1 backend and with XQuery.void
setFuzzySearchSimilarity
(Float similarity) Set the similarity value for the fuzzy search option This flag overrides the flag 'default_fuzzy_search_similarity' in the dm_ftengine_config objectvoid
setThesaurusLibrary
(String thesaurusLibrary) Set the thesaurus library URI for the thesaurus option This flag overrides the flag 'use_thesaurus_library' in the dm_ftengine_config objectvoid
setThesaurusSearchEnabled
(Boolean thesaurusSearchEnabled) Thesaurus Search is an option that can be used only with xPlore 1.2 backend and with XQuery.Methods inherited from interface com.documentum.fc.client.search.IDfAttrExpression
getAttrName, getSearchOperation, getSearchOperationCode, getValueDataType, isCaseSensitive, isRepeated
Methods inherited from interface com.documentum.fc.client.search.IDfExpression
acceptVisitor, getDateFormat, getExpressionType, setDateFormat
-
Field Details
-
SEARCH_OP_EQUAL
static final int SEARCH_OP_EQUALSearch operation code: equal.- See Also:
-
SEARCH_OP_NOT_EQUAL
static final int SEARCH_OP_NOT_EQUALSearch operation code: not equal.- See Also:
-
SEARCH_OP_GREATER_THAN
static final int SEARCH_OP_GREATER_THANSearch operation code: greater than.- See Also:
-
SEARCH_OP_LESS_THAN
static final int SEARCH_OP_LESS_THANSearch operation code: less than.- See Also:
-
SEARCH_OP_GREATER_EQUAL
static final int SEARCH_OP_GREATER_EQUALSearch operation code: greater than or equal.- See Also:
-
SEARCH_OP_LESS_EQUAL
static final int SEARCH_OP_LESS_EQUALSearch operation code: less than or equal.- See Also:
-
SEARCH_OP_BEGINS_WITH
static final int SEARCH_OP_BEGINS_WITHSearch operation code: begins with.- See Also:
-
SEARCH_OP_CONTAINS
static final int SEARCH_OP_CONTAINSSearch operation code: contains.- See Also:
-
SEARCH_OP_DOES_NOT_CONTAIN
static final int SEARCH_OP_DOES_NOT_CONTAINSearch operation code: does not contain.- See Also:
-
SEARCH_OP_ENDS_WITH
static final int SEARCH_OP_ENDS_WITHSearch operation code: ends with.- See Also:
-
SEARCH_OP_IS_NULL
static final int SEARCH_OP_IS_NULLSearch operation code: is null.- See Also:
-
SEARCH_OP_IS_NOT_NULL
static final int SEARCH_OP_IS_NOT_NULLSearch operation code: is not null.- See Also:
-
-
Method Details
-
getValue
String getValue()Gets the expected value of the search operation. When the query runs against xPlore, one can use wildcards in the value. The wildcards character are * (to match several characters) and ? (to match one character or none)- Returns:
- The expected value of the search operation, or
null
if none.
-
isFuzzySearchEnabled
Boolean isFuzzySearchEnabled()Indicates if fuzzy search will be used to validate this constraint- Returns:
-
getFuzzySearchSimilarity
Float getFuzzySearchSimilarity()Indicates the similarity threshold used with the fuzzy search option- Returns:
- the similarity value between 0 and 1.
-
setFuzzySearchEnabled
Fuzzy Search is an option that can be used only with xPlore 1.1 backend and with XQuery. In this case, this flag enables/disables fuzzy search. Fuzzy search will be used only with the operators SEARCH_OP_DOES_NOT_CONTAIN, SEARCH_OP_CONTAINS, SEARCH_OP_EQUALe.g. when searching for "roam", the search will find terms like "foam" and "roams".
- Parameters:
fuzzySearchEnabled
-
-
setFuzzySearchSimilarity
Set the similarity value for the fuzzy search option This flag overrides the flag 'default_fuzzy_search_similarity' in the dm_ftengine_config object- Parameters:
similarity
- value between 0 and 1.
-
isThesaurusSearchEnabled
Boolean isThesaurusSearchEnabled()Indicates if the thesaurus option will be used to validate this constraint- Returns:
-
getThesaurusLibrary
String getThesaurusLibrary()Indicates the thesaurus URI that is used with the thesaurus option- Returns:
-
setThesaurusSearchEnabled
Thesaurus Search is an option that can be used only with xPlore 1.2 backend and with XQuery. In this case, this flag enables/disables thesaurus search. Thesaurus search will be used only with the operators SEARCH_OP_CONTAINS, SEARCH_OP_EQUALe.g. the query terms will be expanded according to the terms declared in a thesaurus.
- Parameters:
thesaurusSearchEnabled
-
-
setThesaurusLibrary
Set the thesaurus library URI for the thesaurus option This flag overrides the flag 'use_thesaurus_library' in the dm_ftengine_config object- Parameters:
thesaurusLibrary
- thesaurus URI.
-
isExactMatchEnabled
Boolean isExactMatchEnabled()Indicates if an equals or a not_equals constraint must be exact match constraint.- Returns:
-
setExactMatchEnabled
To evaluate an EQUALS or NOT_EQUALS constraint, an exact match can be done : no stemming, no stop words removal, no thesaurus search or wildcards. Such an evaluation is not the default one but can be enabled by setting this flag and is more optimized.- Parameters:
exactMatchEnabled
-
-