IDocumentSearch¶
- class IDocumentSearch¶
Bases:
ImpactCOMWrapperBase- Description:
The IDocumentSearch object implements document searching.
- Remarks:
The IDocumentSearch object provides a generic searching mechanism that is independant of the underying document repository. Each document provider converts the search criteria into provider specific searches. So any document search you create will work regardless of the underlying document provider being used. To use the IDocumentSearch use the Add method to add one or more search criteria then use the Execute method to retrieve the documents from the document repository. The Type property can be used to limit the IDocumentType’s searched. The IDocumentContext object can be used to initialise the IDocuments collection returned by Execute. To locate all documents in the document repository use an IDocumentSearch with no criteria. The IDocuments collection returned by Execute will contain every document available. You should also check supports_paging before loading all documents as the operation may be very slow for large numbers of documents. Introduced in Impact 9.0.0.83.
Wraps a COM object or another wrapper instance. Accepts: - A valid impact_object - An existing impact_com_wrapper_base-derived instance
- property count¶
Gets Count.
- Description:
The number of search criteria.
- Returns:
The value of Count.
- Return type:
count (int)
- property total_count¶
Gets total_count.
- Description:
The number of documents found by executing the search.
- Remarks:
Introduced in Impact 10.0.0.67
- Returns:
The value of total_count.
- Return type:
total_count (int)
- property type¶
Gets Type.
- Description:
Limits the document search to a specific IDocumentType.
- Returns:
The value of Type.
- Return type:
- add(column)¶
- Description:
Adds a new IDocumentCriterion to the document search.
- Remarks:
The same IDocumentColumn object may be used in multiple search criterion. Complex search criteria can be built by adding multiple IDocumentCriterion and combining them with multiple bracketting levels.
- Returns:
The IDocumentCriterion object can be used to specify the values to match.
- Parameters:
column (IDocumentColumn) – The document column to use in the search.
- execute()¶
- Description:
Executes the document search using the search criteria
- item(index)¶
- Description:
Gets an IDocumentCriterion object with the specified index.
- Parameters:
index (any) – Specifies the index of the IDocumentCriterion object to get.