Interface IAssetSearchEngine
Assembly: ImageVault.Core.dll
Syntax
public interface IAssetSearchEngine
Properties
ConnectionString
Sets the connection string
Declaration
string ConnectionString { set; }
Property Value
| Type |
Description |
| System.String |
|
Description
Gets a description of the search engine
Declaration
string Description { get; }
Property Value
| Type |
Description |
| System.String |
|
Enabled
True if a Search engine is configured
Declaration
Property Value
| Type |
Description |
| System.Boolean |
|
Methods
DeleteAssetAsync(SearchIndexInfo, Int32)
Deletes an asset from the search index
Declaration
Task DeleteAssetAsync(SearchIndexInfo indexInfo, int id)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
DeleteAssets(SearchIndexInfo, IList<Int32>)
Deletes the assets matching the supplied ids from the index
Declaration
void DeleteAssets(SearchIndexInfo indexInfo, IList<int> ids)
Parameters
| Type |
Name |
Description |
| SearchIndexInfo |
indexInfo |
|
| System.Collections.Generic.IList<System.Int32> |
ids |
|
DeleteAssetsInVault(SearchIndexInfo, Int32)
Deletes all assets belonging to the supplied vaultId
Declaration
void DeleteAssetsInVault(SearchIndexInfo indexInfo, int vaultId)
Parameters
DeleteIndex(SearchIndexInfo)
Deletes an index with the supplied id
Declaration
void DeleteIndex(SearchIndexInfo indexInfo)
Parameters
DeleteIndexAsync(SearchIndexInfo)
Deletes the index (if it exists)
Declaration
Task DeleteIndexAsync(SearchIndexInfo indexInfo)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
EnsureIndexExists(SearchIndexInfo)
Ensures that the index exists
Declaration
void EnsureIndexExists(SearchIndexInfo indexInfo)
Parameters
EnsureIndexExistsAsync(SearchIndexInfo)
Ensures that the index exists
Declaration
Task EnsureIndexExistsAsync(SearchIndexInfo indexInfo)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
GetSchemaVersion()
Returns the current schema version of the search engine
Declaration
Returns
| Type |
Description |
| System.Int32 |
|
GetStatisticsAsync(SearchIndexInfo)
Declaration
Task<IIndexStatistics> GetStatisticsAsync(SearchIndexInfo indexInfo)
Parameters
Returns
IndexAssetAsync(SearchIndexInfo, IIndexableAsset)
Indexes the supplied asset
Declaration
Task IndexAssetAsync(SearchIndexInfo indexInfo, IIndexableAsset asset)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task |
|
IndexAssets(SearchIndexInfo, IList<IIndexableAsset>)
Indexes the supplied assets
Declaration
IndexOperationResponse IndexAssets(SearchIndexInfo indexInfo, IList<IIndexableAsset> indexableAssets)
Parameters
Returns
IndexAssetsAsync(SearchIndexInfo, IList<IIndexableAsset>)
Indexes the supplied assets
Declaration
Task<IndexOperationResponse> IndexAssetsAsync(SearchIndexInfo indexInfo, IList<IIndexableAsset> assets)
Parameters
Returns
IndexExists(SearchIndexInfo)
Checks if the index is created
Declaration
bool IndexExists(SearchIndexInfo indexInfo)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
IndexExistsAsync(SearchIndexInfo)
Checks if the index is created
Declaration
Task<bool> IndexExistsAsync(SearchIndexInfo indexInfo)
Parameters
Returns
| Type |
Description |
| System.Threading.Tasks.Task<System.Boolean> |
|
ListIndexes(Int32)
Declaration
IList<IAssetSearchEngineIndex> ListIndexes(int indexVersion)
Parameters
| Type |
Name |
Description |
| System.Int32 |
indexVersion |
|
Returns
Search(SearchIndexInfo, AssetsSearchRequest)
Declaration
ODataResponse<IIndexableAsset> Search(SearchIndexInfo indexInfo, AssetsSearchRequest request)
Parameters
Returns
SearchAsync(SearchIndexInfo, AssetsSearchRequest)
Declaration
Task<ODataResponse<IIndexableAsset>> SearchAsync(SearchIndexInfo indexInfo, AssetsSearchRequest request)
Parameters
Returns
SuggestAsync(SearchIndexInfo, AssetsSearchRequest)
Declaration
Task<ODataResponse<ISuggestionItem>> SuggestAsync(SearchIndexInfo indexInfo, AssetsSearchRequest request)
Parameters
Returns
UpdateIndexInfoConfig(SearchIndexInfo)
Updates the supplied index info with configuration details that it's missing
Declaration
bool UpdateIndexInfoConfig(SearchIndexInfo info)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|