Using a Learn Model in a Search

To use a trained Learn model in a search query use the LKT_QEXPR_RLINK query combiner. The name of the TIBCO Patterns Learn model to be used should be passed as an LPAR_STR_RLMODELNAME parameter to the LPAR_LST_QEXPR.

For a cutoff to be employed, the cutoff threshold can be encoded in the TIBCO Patterns Learn model and the LPAR_BOOL_USEMODELTHRESH lpar can be added to the LPAR_LST_QEXPR with a value of true. The proper cutoff value is likely to change each time the model is retrained; this ensures the proper cutoff for the model in use is always applied.

The number of sub-queries to the LKT_QEXPR_RLINK combiner must be the same as the number of features in the model. The query structure under the LKT_QEXPR_RLINK combiner must be the same as the query used to train the model.