WebCenter Interaction API  
 

IPTSBooleanQuery.addSubquery Method (IPTSField, Int32, XPDateTime)

Add a comparison involving a date/time field and a non-relative operator 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 dateField,
   int comparisonOperator,
   XPDateTime comparisonValue
);

Parameters

dateField
the field to compare. Must have type PTSFieldType.DATETIME.
comparisonOperator
to use for the comparison. 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.
comparisonValue
value to compare with. May not be null.

See Also

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