Restricts the query to return only items where the text in the content elements matches the specified String. This method uses the FREETEXT function for CBR (Content-Based Retrieval) queries.

The FREETEXT function searches all content on all CBR-enabled properties on the supported content elements. To search content on a single CBR-enabled property, use SetContainsRestriction.


Namespace: FileNet.Api.Query
Assembly: FileNet.Api (in filenet.api.dll)

Syntax

Visual Basic (Declaration)
Public Overridable Sub SetFreetextRestriction( _ 
   ByVal symbolicClassName As String,  _ 
   ByVal searchExpression As String _ 
)
C#
public virtual void SetFreetextRestriction(
   string symbolicClassName,
   string searchExpression
)
C++
public:
 virtual void SetFreetextRestriction(
   String symbolicClassName,
   String searchExpression
)
J#
public virtual void SetFreetextRestriction(
   string symbolicClassName,
   string searchExpression
)
JScript
public virtual  function SetFreetextRestriction(
   symbolicClassName : String,
   searchExpression : String
)

Parameters

symbolicClassName
A String containing the symbolic name of the class.
searchExpression
A String containing the search text to use for the FREETEXT function.

Exceptions

Exception TypeCondition
EngineRuntimeException Thrown when the parameter is Null or invalid.

See Also