←Select platform

Upsert(FullTextSearchItem) Method

Summary

Adds or updates a new master form page to the full text search database

Syntax

C#
VB
C++
public void Upsert( 
   FullTextSearchItem item 
) 
Public MustOverride Sub Upsert( 
   ByVal item As FullTextSearchItem 
) 
public:  
   virtual void Upsert( 
      FullTextSearchItem^ item 
   ) abstract 

Parameters

item

Properties of the item to add or update. Must not be null.

Remarks

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
RepositoryName Required: Used to generate the unique ID of this item. Must not be null.
FormName Required: Used to generate the unique ID of this item. Must not be null or an empty string.
PageNumber Required: Used to generate the unique ID of this item. If this value is 0, then 1 is automatically used.
Content Required: The content to index. Must not be null. Replaces old data if the item already exist.
Language Optional: The language of Content. If this value is null, then English is assumed.
UserData 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.

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Forms.Recognition Assembly