Package com.documentum.fc.client.search
Class PositionalOperator
java.lang.Object
com.documentum.fc.client.search.PositionalOperator
This operator can be set on a IDfExpressionSet object. It's used to define the options to run proximity searches, when
the expression set contains only IDfFulltextExpression objects (at least 2).
Proximity searches are only supported when the DFC search service generates xQuery.
This class defines the distance between the IDfFulltextExpression objects, either phrases or words.
By default, if the number of words is not set, it's initialized to 0 and the words must be ordered if it's not specified.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCount()
Returns the distance (number of word) between the IDfFulltextExpression composing the proximity searchboolean
Indicates if the IDfFulltextExpression which take part in the proximity search must be ordered or notvoid
setCount
(int count) Sets the distance (number of words) between the IDfFulltextExpression object to match the constraintvoid
setOrdered
(boolean isOrdered) Specifies if the IDfFulltextExpression which take part in the proximity search must be ordered or not to match the text
-
Constructor Details
-
PositionalOperator
public PositionalOperator()
-
-
Method Details
-
setCount
public void setCount(int count) Sets the distance (number of words) between the IDfFulltextExpression object to match the constraint- Parameters:
count
- the number of words
-
setOrdered
public void setOrdered(boolean isOrdered) Specifies if the IDfFulltextExpression which take part in the proximity search must be ordered or not to match the text- Parameters:
isOrdered
-
-
getCount
public int getCount()Returns the distance (number of word) between the IDfFulltextExpression composing the proximity search- Returns:
- number of words
-
isOrdered
public boolean isOrdered()Indicates if the IDfFulltextExpression which take part in the proximity search must be ordered or not- Returns:
- boolean
-