Interface ISearchService
Assembly: ImageVault.Core.dll
Syntax
public interface ISearchService
Methods
DeleteAssets(List<Int32>)
Deletes the assets with the matching mediaItemIds from the search service
Declaration
void DeleteAssets(List<int> mediaItemIds)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<System.Int32> |
mediaItemIds |
|
DeleteOldIndexes(SearchIndexInfo)
Deletes all indexes with id same or older than the supplied index
Declaration
void DeleteOldIndexes(SearchIndexInfo indexInfoToDelete)
Parameters
IndexAllAssets(IndexAssetArgument, Int32, ICancellationToken)
Declaration
bool? IndexAllAssets(IndexAssetArgument indexAssetArgument, int size, ICancellationToken cancellationToken)
Parameters
Type |
Name |
Description |
IndexAssetArgument |
indexAssetArgument |
|
System.Int32 |
size |
The number of items to
|
ImageVault.Abstractions.ICancellationToken |
cancellationToken |
|
Returns
Type |
Description |
System.Nullable<System.Boolean> |
True if no more item are left to index, false if IndexAll has not completely covered all items,
null if SearchEngine is not enabled
|
IndexAssets(IList<Int32>)
Declaration
void IndexAssets(IList<int> ids)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<System.Int32> |
ids |
|
QueueDeleteAssetsInVault(Int32)
Queues delete of all assets in a vault
Declaration
IList<int> QueueDeleteAssetsInVault(int vaultId)
Parameters
Type |
Name |
Description |
System.Int32 |
vaultId |
|
Returns
Type |
Description |
System.Collections.Generic.IList<System.Int32> |
The list of queue job id that was created
|
QueueIndexAssets(IList<Int32>, Int32)
Declaration
IList<int> QueueIndexAssets(IList<int> mediaItemIds, int priorityOffset)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IList<System.Int32> |
mediaItemIds |
|
System.Int32 |
priorityOffset |
|
Returns
Type |
Description |
System.Collections.Generic.IList<System.Int32> |
The list of queue job id that was created
|
QueueReindexAssetsInCategory(Int32)
Queue reindex of all assets in the supplied category
Declaration
IList<int> QueueReindexAssetsInCategory(int categoryId)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryId |
|
Returns
Type |
Description |
System.Collections.Generic.IList<System.Int32> |
The list of queue job id that was created
|
QueueReindexAssetsInCollection(Int32)
Queue reindex of all assets in the supplied collection
Declaration
IList<int> QueueReindexAssetsInCollection(int collectionId)
Parameters
Type |
Name |
Description |
System.Int32 |
collectionId |
|
Returns
Type |
Description |
System.Collections.Generic.IList<System.Int32> |
The list of queue job id that was created
|
ReindexAssetInCategory(Int32)
Re-indexes all items that belongs to the supplied category id
Declaration
void ReindexAssetInCategory(int categoryId)
Parameters
Type |
Name |
Description |
System.Int32 |
categoryId |
|
ReindexAssetInCollection(Int32)
Re-indexes all items that belongs to the supplied collection
Declaration
void ReindexAssetInCollection(int collectionId)
Parameters
Type |
Name |
Description |
System.Int32 |
collectionId |
|
RemoveAssetsInVault(Int32)
Declaration
void RemoveAssetsInVault(int vaultId)
Parameters
Type |
Name |
Description |
System.Int32 |
vaultId |
|