LuceneIndexCreator class

From Catglobe Wiki
Revision as of 08:19, 21 June 2017 by Nguyenduyan (talk | contribs)
Jump to: navigation, search

LuceneIndexCreator



Creates and updates lucene indexes to help find things

Constructors

  • () - Instanciate index creator to manipulate index

Methods

  • Empty DeleteIds(string name "Name of the index", int parentResourceId "Resource to check permissions on", array columns "The column configuration. This MUST be the same every time every time for the same index, or a new index must be created", array documentsIds "Document ids to delete") - Delete documents from index
  • Empty Destroy(string name "Name of the index", int parentResourceId "Resource to check permissions on", array columns "The column configuration. This MUST be the same every time every time for the same index, or a new index must be created") - Delete all files associated with the index
  • string ToString() - The string representation of the object.
  • Empty UpdateOrAddDocuments(string name "Name of the index", int parentResourceId "Resource to check permissions on", array columns "The column configuration. This MUST be the same every time every time for the same index, or a new index must be created", bool overwriteOldIndex "Overwrite any existing index", array documents "Documents to update/add") - Create, update or overwrite index
  • Empty UpdateOrAddDocuments(string name "Name of the index", int parentResourceId "Resource to check permissions on", array columns "The column configuration. This MUST be the same every time every time for the same index, or a new index must be created", bool overwriteOldIndex "Overwrite any existing index", array sourceData "Array to iterate over and call the callback", Function callback "Callback that get each sourceData element as parameter, and must return either a LuceneDocument or Empty") - Create, update or overwrite index by stream updates or adding documents, which may vastly reduce memory usage, otherwise similar to overload

Properties

  • string ObjectTypeName { get; } - The name of the type of object.
  • TypeInformation TypeInformation { get; } - Get information about this class.