Help > Reference > Automation

Automation

Perceptive Search OLE Automation interface is designed to be used by scripts and other programs to perform search and access search results. This OLE Automation interface makes it possible to develop other tools or applications that use Perceptive Search, with scripting languages like JavaScript or VBScript. Please refer to Perceptive Search Macro Object Model for examples.

Constants

Objects

Constants

Result extraction (top)

Extract results types, values can be ORed together, though some are mutually exclusive

Const ExtractFileNames = 0Extract file names
Const ExtractTitles = 1Extract titles
Const ExtractResultList = 2Extract result list
Const ExtractToCSV = 32Extract to CSV
Const ExtractCategories = 128Extract categories
Const ExtractEntities = 256Extract entities
Const ExtractIncludeIndex = 512Include index information
Const ExtractIncludeDocNum = 1024Include document number
Const ExtractWordList = 2048Extract word list

Query type (top)

Enumeration of the available Perceptive Search Query types

Const QueryCommand = 1Use command-style query
Const QueryNaturalLang = 2Use natural language query
Const QueryWebStyle = 3Use web-style query
Const QueryFindSimilar = 4Find similar

Output type (top)

Enumeration of output types for context extraction

Const OutText = 0Use text format
Const OutCSV = 1Use CSV format
Const OutRichText = 2Use rich text format
Const OutHTML = 3Use HTML format
Const OutUnicode = 4Use unicode

Objects

ISYSQuery9 (top)

properties

(Read-Only) Property ReadyState As BooleanQuery this to determine if Perceptive Search Query has completed its start up

methods

Sub ClearResultsClears the Perceptive Search search results
Sub CloseCloses Perceptive Search Query
Sub DocActivate (DocNum As Long)Activates the specified document in its native application
Sub DocHide (DocNum As Long)Removes a document from the result list
Sub DocOpen (DocNum As Long)Opens the specified document in the Perceptive Search browse window
Sub ExtractContext (toClipboard As Boolean, fileName As String, OutputFormat As Long)Extracts the context of hits to the clipboard or a file
Sub ExtractResults (extractFlags As Long, toClipboard As Boolean, fileName As String, [includeDocNum As BooleanFalse])Extracts the current result list to a file
Function GetDataBase As StringReturns the current Perceptive Search index path, may be a semi colon separated list
Function GetDocCount As LongReturns the number of document in the current result list
Function GetDocHits (DocNum As Long) As StringGets the number of hits found in the document specified by the document number
Function GetDocLongName (DocNum As Long) As StringGets the file name of the document specified by the document number
Function GetDocName (DocNum As Long) As StringGets the file name of the document specified by the document number
Sub GetDocNum (DocNum As Long)Gets the document number of the currently selected document
Function GetDocTitle (DocNum As Long) As StringGets the title of the document specified by the document number
Function GetHitWord (WordNum As Long) As StringRetrieves the word specified by the word number parameter from the list of found terms
Function GetLine (DocNum As Long, LineNum As Long) As StringReturns the specified line of text from the specified document
Function GetLineCount (DocNum As Long) As LongReturns the total number of lines in the document
Function GetMetaDataByName (DocNum As Long, MetaName As String) As StringReturns a meta data value by name (e.g. Title)
Function GetMetaDataLineCount (DocNum As Long) As LongReturns the number of line of meta data in the document
Function GetQueryStats As StringReturns a comma separated list of number of hits, number of different words and total document from the current query result
Function GetRawFileName (DocNum As Long) As StringReturns the application native file name, eg EID for MAPI
Function GetResultLine (DocNum As Long) As StringGets the specified result line, tab delimited
Function GetSavedQuery (queryNum As Long, QueryType As Long) As StringGets a saved query by index, call GetSavedQueryCount first
Function GetSavedQueryCount As LongGets the number of saved queries available
Sub LoadResultList (fileName As String)Loads a saved result list from disk
Sub MaximizeMaximizes the Perceptive Search Query window
Sub MinimizeMinimizes the Perceptive Search Query window
Function Query (QueryType As Long, OleQueryStr As String) As StringPerforms a query of type ISYSQueryEnum using specified query string, return the number of hits, words and documents at a comma separated string
Sub RestoreRestores the Perceptive Search Query window to its previous state
Sub SaveResultList (fileName As String)Saves a binary copy of the result list
Sub SelectIndex (IndexPath As String)Selects an Perceptive Search index by specifying the path
Function Show As LongMakes Perceptive Search Query visible
Sub ShowContextSwitches from result list view to context view
Sub ShowQueryShows the current Query input screen
Sub Sort (sortType As Integer)Changes the sort order

IISYSCategory (top)

properties

(Read-Only) Property Count As LongReturns the number of documents in the category
(Read-Only) Property Name As StringReturns a category name

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSCategoryList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index As Long) As IISYScategoryReturns an item from the collection

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSDesktop (top)

properties

(Read-Only) Property ActiveTab As IISYStabReturns an active tab
(Read-Only) Property Indexes As IISYSindexlistReturns a list of available indexes
(Read-Only) Property Tabs As IISYStablistReturns a list of open tabs

methods

Sub Close Closes Perceptive Search Query
Function ExecMethod (MethodName As String, Params) As Variant

IISYSDocument (top)

properties

(Read-Write) Property Flagged As LongMarks the document as flagged (not flagged)
(Read-Write) Property Selected As BooleanMarks the document as selected (not selected)
(Read-Only) Property AbsoluteFilename As StringReturns the absolute file name of the document
(Read-Only) Property Category As StringReturns the category of the document
(Read-Only) Property Date As DateReturns the date of the document
(Read-Only) Property DateFirst As DateReturns the first date of the document
(Read-Only) Property DateIndexed As DateReturns the indexing date of the document
(Read-Only) Property Entities As IISYSentitylistReturns the list of entities in the document
(Read-Only) Property fileName As StringReturns the file name of the document
(Read-Only) Property FileOnDisk As String
(Read-Only) Property Folder As StringReturns the folder of the document
(Read-Only) Property Format As LongReturns the format of the document
(Read-Only) Property FormatName As StringReturns the format name of the document
(Read-Only) Property HitCount As LongReturns the number of hits in the document
(Read-Only) Property Index As StringReturns the document's index name
(Read-Only) Property ISYSID As LongReturns the ID of the document
(Read-Only) Property Line (Index As Long) As StringReturns the specified line of text from the specified document
(Read-Only) Property LineCount As LongReturn the total number of lines in the document
(Read-Only) Property Metadata As IISYSmetadatalistReturns the document's metadata
(Read-Only) Property Name As StringReturns the file name of the document
(Read-Only) Property Relevance As LongReturns the relevance of the document
(Read-Only) Property Size As LongReturns the size of the document
(Read-Only) Property Title As StringReturns the title of the document

methods

Function ExecMethod (MethodName As String, Params) As Variant
Function Export (Dest As String) As BooleanExports the selected document
Sub PrintPrints the selected document
Sub RemoveRemoves the selected document from result list

IISYSDocumentCollection (top)

properties

(Read-Only) Property EOF As BooleanTests whether the document position is at the end of the collection
(Read-Only) Property Item As IISYSdocumentReturns a document from the collection

methods

Function ExecMethod (MethodName As String, Params) As Variant
Sub MoveFirstMoves to the first document in the collection
Sub MoveNextMoves to the last document in the collection

IISYSEntity (top)

properties

(Read-Only) Property CoreName As String
(Read-Only) Property Count As Long
(Read-Only) Property DisplayName As StringReturns the display name of the entity
(Read-Only) Property Type As LongReturns the type of the entity

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSEntityList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index As Long) As IISYSentityReturns an item from the collection

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSFilter (top)

properties

(Read-Write) Property CategoryLike As String
(Read-Write) Property CategoryUnlike As String
(Read-Write) Property DateAfter As Date
(Read-Write) Property DateBefore As Date
(Read-Write) Property FilenameLike As String
(Read-Write) Property FilenameUnlike As String
(Read-Write) Property Flag As Long
(Read-Write) Property IndexedAfter As Date
(Read-Write) Property IndexedBefore As Date
(Read-Write) Property PathContains As String
(Read-Write) Property PathOmits As String

methods

Sub ApplyApplies filter
Function ExecMethod (MethodName As String, Params) As Variant
Sub ResetResets filter

IISYSIndex (top)

properties

(Read-Only) Property Name As StringReturns an index name
(Read-Only) Property Path As StringReturns an index path

methods

Function ExecMethod (MethodName As String, Params) As Variant
Sub IDBFunction (Method As String)Executes Perceptive Search IDBFunction

IISYSIndexList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index) As IISYSindexReturns an item from the collection

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSMetadataList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index) As StringReturns an item from the collection
(Read-Only) Property Key (Index As Long) As String

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSMetaRefine (top)

properties

(Read-Only) Property Count As Long
(Read-Only) Property Item (Index As Long) As IISYSmetarefineitem
(Read-Only) Property Name As String

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSMetaRefineItem (top)

properties

(Read-Only) Property Count As Long
(Read-Only) Property Name As String

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSMetaRefineList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index As Long) As IISYSmetarefineReturns an item from the collection

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSObject (top)

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSResults (top)

properties

(Read-Only) Property Categories As IISYScategorylistReturns a list of categories in the current result
(Read-Only) Property Count As LongReturns the number of documents in the current result
(Read-Only) Property Entities As IISYSentitylistReturns a list of entities
(Read-Only) Property Filter As IISYSfilter
(Read-Only) Property Item (Index As Long) As IISYSdocumentReturns the specified document
(Read-Only) Property Metadata As IISYSmetarefinelistReturns metadata
(Read-Only) Property Query As StringReturns the original query text
(Read-Only) Property WordList As IISYSwordlistReturns a list of words in the current result

methods

Sub ClearClears the current result
Function ExecMethod (MethodName As String, Params) As Variant
Function FetchAll As IISYSdocumentcollectionReturns a list of all documents
Function FetchFlagged (Flag As Long) As IISYSdocumentcollectionReturns a list of flagged documents
Function FetchPrompt As IISYSdocumentcollection
Function FetchSelected As IISYSdocumentcollectionReturns a list of selected documents
Sub LoadAnswer (fileName As String)Loads result list from a file
Sub SaveAnswer (fileName As String)Saves the result list to a file
Sub Search (Query As String, QyeryType)Performs a query of type ISYSQueryEnum using specified query string
Sub Sort (Method)Changes the sort order

IISYSTab (top)

properties

(Read-Only) Property Categories As IISYScategorylistReturns a list of categories for the tab
(Read-Only) Property Count As LongReturns the number of documents for the tab
(Read-Only) Property Entities As IISYSentitylistReturns a list of entities for the tab
(Read-Only) Property Filter As IISYSfilter
(Read-Only) Property Item (Index As Long) As IISYSdocumentReturns the specified document
(Read-Only) Property Metadata As IISYSmetarefinelistReturns metadata
(Read-Only) Property Query As StringReturns the original query text
(Read-Only) Property WordList As IISYSwordlistReturns a list of words for the tab

methods

Sub ActivateMakes the tab active
Sub ClearClears the tab
Function ExecMethod (MethodName As String, Params) As Variant
Sub ExecuteAction (Action As String, Options)
Function FetchAll As IISYSdocumentcollectionReturns a list of all documents
Function FetchFlagged (Flag As Long) As IISYSdocumentcollectionReturns a list of flagged documents
Function FetchPrompt As IISYSdocumentcollection
Function FetchSelected As IISYSdocumentcollectionReturns a list of selected documents
Sub LoadAnswer (fileName As String)Loads result list from a file
Sub OpenIndex (Path As String)Selects an Perceptive Search index by specifying the path
Sub SaveAnswer (fileName As String)Saves the result list to a file
Sub Search (Query As String, QyeryType)Performs a query of type ISYSQueryEnum using specified query string
Sub Sort (Method)Changes the sort order

IISYSTabList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index As Long) As IISYStabReturns an item from the collection

methods

Sub CloseAllCloses all tabs
Function ExecMethod (MethodName As String, Params) As Variant
Function New As IISYStabOpens a new tab

IISYSWord (top)

properties

(Read-Only) Property Count As Long
(Read-Only) Property Name As String

methods

Function ExecMethod (MethodName As String, Params) As Variant

IISYSWordList (top)

properties

(Read-Only) Property Count As LongReturns the number of items in collection
(Read-Only) Property Item (Index As Long) As IISYSwordReturns an item from the collection