WebCenter Interaction API  
 

IPTSQueryRequest.setQuery Method (String, Boolean, Boolean, Boolean)

Use the provided String as the search query for this request. The default search fields are searched (see IPTSSearchableCollection.TextQueryDefault); these are usually the title, description, and full-text content fields. An admin can edit this list of fields via the UI, or the default may be changed on-the-fly by calling setTextQueryDefaultFields.

This call replaces any previous queries set by any call to setQuery.
void setQuery(
   string textQuery,
   bool useBestBets,
   bool useSpellCorrection,
   bool useThesaurus
);

Parameters

textQuery
the full-text search query.
useBestBets
whether any Best Bets for textQuery should be the highest-ranked results
useSpellCorrection
whether to apply spelling correction to textQuery.
useThesaurus
whether to expand textQuery using the thesaurus.

See Also

IPTSQueryRequest Interface | com.plumtree.server.search Namespace | IPTSQueryRequest.setQuery Overload List