Detects if the master form has been added to the full text database.
public bool IsMasterFormInFullTextSearch(
FormRecognitionAttributes masterAttributes,
string repositoryName
)
masterAttributes
Attributes of the master form to check. This value cannot be null.
repositoryName
Repository name to check. If this is null, then the default repository without a name will be searched.
true if an item matching this master form exists in the full text database, otherwise; false.
Use IsMasterFormInFullTextSearch to quickly detect if a master form exists in the full text database. This method will call IFullTextSearchManager.Select on all the pages of the master form and will only return true if items for all the pages were found.
This method creates a new instance of FullTextSearchItem, fills it up using the values described below and then calls Select to perform its operation:
Member |
Value |
---|---|
repositoryName parameter. |
|
Name of the form obtained from masterAttributes. |
|
-1 to get all the pages. |
When the method returns, the number of items found should match the number of pages in masterAttributes with correct page numbers.
For more information, refer to Speeding Up Forms Recognition Using the Full Text Search Feature.