AlfrescoSearchService Class Reference
Inherits from | NSObject |
Declared in | AlfrescoSearchService.h |
Overview
The AlfrescoSearchService provides various ways to search an Alfresco repository.
Author: Gavin Cornwell (Alfresco), Tijs Rademakers (Alfresco), Peter Schmidt (Alfresco)
Tasks
Initialisation
-
– initWithSession:
Initialises with a standard Cloud or OnPremise session
Searches methods.
-
– searchWithStatement:language:completionBlock:
Performs a search based on the search statement and given query language. Query language can be either CMIS SQL. For this a valid CMIS SQL statement needs to be passed to the method. The alternative is to use a space delimited keyword string
-
– searchWithStatement:language:listingContext:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
-
– searchWithKeywords:options:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search. The method uses
-
– searchWithKeywords:options:listingContext:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
Instance Methods
initWithSession:
Initialises with a standard Cloud or OnPremise session
- (id)initWithSession:(id<AlfrescoSession>)session
Parameters
- session
the AlfrescoSession to initialise the site service with.
Discussion
Initialises with a standard Cloud or OnPremise session
Declared In
AlfrescoSearchService.h
searchWithKeywords:options:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search. The method uses
- (AlfrescoRequest *)searchWithKeywords:(NSString *)keywords options:(AlfrescoKeywordSearchOptions *)options completionBlock:(AlfrescoArrayCompletionBlock)completionBlock
Parameters
- keywords
the search strings.
- options
the AlfrescoKeywordSearchOptions objects with the search settings.
- completionBlock
The block that’s called with the retrieved nodes in case the operation succeeds.
Discussion
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search. The method uses
Declared In
AlfrescoSearchService.h
searchWithKeywords:options:listingContext:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
- (AlfrescoRequest *)searchWithKeywords:(NSString *)keywords options:(AlfrescoKeywordSearchOptions *)options listingContext:(AlfrescoListingContext *)listingContext completionBlock:(AlfrescoPagingResultCompletionBlock)completionBlock
Parameters
- keywords
the search strings.
- options
the AlfrescoKeywordSearchOptions objects with the search settings.
- listingContext
the ListingContext options used for paging
- completionBlock
The block that’s called with the retrieved nodes in case the operation succeeds.
Discussion
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
Declared In
AlfrescoSearchService.h
searchWithStatement:language:completionBlock:
Performs a search based on the search statement and given query language. Query language can be either CMIS SQL. For this a valid CMIS SQL statement needs to be passed to the method. The alternative is to use a space delimited keyword string
- (AlfrescoRequest *)searchWithStatement:(NSString *)statement language:(AlfrescoSearchLanguage)language completionBlock:(AlfrescoArrayCompletionBlock)completionBlock
Parameters
- statement
the search statement.
- language
the query language to be used.
- completionBlock
The block that’s called with the retrieved nodes in case the operation succeeds.
Discussion
Performs a search based on the search statement and given query language. Query language can be either CMIS SQL. For this a valid CMIS SQL statement needs to be passed to the method. The alternative is to use a space delimited keyword string
Declared In
AlfrescoSearchService.h
searchWithStatement:language:listingContext:completionBlock:
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
- (AlfrescoRequest *)searchWithStatement:(NSString *)statement language:(AlfrescoSearchLanguage)language listingContext:(AlfrescoListingContext *)listingContext completionBlock:(AlfrescoPagingResultCompletionBlock)completionBlock
Parameters
- statement
the search statement.
- language
the query language to be used.
- listingContext
the ListingContext options used for paging
- completionBlock
The block that’s called with the retrieved nodes in case the operation succeeds.
Discussion
Performs a space delimited keyword search with or without exact matches, optionally including the results of a full text search.
Declared In
AlfrescoSearchService.h