Adds or updates a new master form page to the full text search database
public void Upsert(
FullTextSearchItem item
)
item
Properties of the item to add or update. Must not be null.
Used by FormRecognitionEngine or AutoFormsEngine to perform full text search.
This method adds or updates a new master form page to the full text search database. If an item with these properties already exists, then its metadata will get updated.
The engine will use the values of RepositoryName, FormName and PageNumber to create the unique identifier of this form in the database.
This method uses the following properties of FullTextSearchItem:
Property |
Description |
---|---|
Required: Used to generate the unique ID of this item. Must not be null. |
|
Required: Used to generate the unique ID of this item. Must not be null or an empty string. |
|
Required: Used to generate the unique ID of this item. If this value is 0, then 1 is automatically used. |
|
Required: The content to index. Must not be null. Replaces old data if the item already exist. |
|
Optional: The language of Content. If this value is null, then English is assumed. |
|
Optional: Any user-defined data to associate with this item. Replaces old data if the item already exist. |
Index must be called after Upsert(FullTextSearchItem).
Use IFullTextSearchManager.Upsert(IEnumerable<FullTextSearchItem>) to add or update multiple items with one call to increase performance.