WebCenter Interaction API  
 

IPTSBooleanQuery.addSubquery Method (IPTSField, Int32, Int32)

Add a comparison involving an integer, floating-point, or date field, as a child of this IPTSBooleanQuery. Convenience method that is equivalent to calling IPTSearchFactory.createComparisonQuery and then calling the IPTSQuery form of addSubquery.

void addSubquery(
   IPTSField numericField,
   int comparisonOperator,
   int comparisonValue
);

Parameters

numericField
the field to compare. Must have type PTSFieldType.INT, PTSFieldType.FLOAT, or PTSFieldType.DATETIME.
comparisonOperator
operator to use for the comparison. For integer or floating-point comparisons, must be one of PT_FILTEROPS.PT_FILTEROP_LT, PT_FILTEROPS.PT_FILTEROP_GT, PT_FILTEROPS.PT_FILTEROP_LTE, PT_FILTEROPS.PT_FILTEROP_GTE, PT_FILTEROPS.PT_FILTEROP_EQ or PT_FILTEROPS.PT_FILTEROP_NUMERIC_EQ, PT_FILTEROPS.PT_FILTEROP_NE or PT_FILTEROPS.PT_FILTEROP_NUMERIC_NOTEQ. For date-time comparisons, must be one of PT_FILTEROPS.PT_FILTEROP_RELATIVE_LT, PT_FILTEROPS.PT_FILTEROP_RELATIVE_GT, PT_FILTEROPS.PT_FILTEROP_RELATIVE_LTE, PT_FILTEROPS.PT_FILTEROP_RELATIVE_GTE. (For date-time comparisons with other operators, use the similar form of addSubquery that accepts an XPDateTime.)
comparisonValue
value to compare with. (For the relative date-time operators, this is a number of milliseconds relative to the time this method is called.)

See Also

IPTSBooleanQuery Interface | com.plumtree.server.search Namespace | IPTSBooleanQuery.addSubquery Overload List