Class DdiItemIndexer
Default external indexing implementation
Implements
Inherited Members
Namespace: Algenta.Colectica.Model.Ddi
Assembly: Algenta.Colectica.Model.Ddi.dll
Syntax
[Export(typeof(IItemIndexer))]
public class DdiItemIndexer : IItemIndexer
Properties
Name
Indexer Name
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
Version
Indexer version
Declaration
public int Version { get; }
Property Value
Type | Description |
---|---|
int |
Methods
GetDeclaredFields()
A list of fields to be added to the an external index
Declaration
public List<DeclaredField> GetDeclaredFields()
Returns
Type | Description |
---|---|
List<DeclaredField> |
IndexItem(IVersionable)
Determine fields to be added to an external index for an item
Declaration
public List<ItemIndexValue> IndexItem(IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
IVersionable | item |
Returns
Type | Description |
---|---|
List<ItemIndexValue> |
IndexItemWithContext(RepositoryClientBase, IVersionable)
Add fields to an external index, which may be related to the item from other metadata items
Declaration
public List<ItemIndexValue> IndexItemWithContext(RepositoryClientBase client, IVersionable item)
Parameters
Type | Name | Description |
---|---|---|
RepositoryClientBase | client | Repository client |
IVersionable | item | Item to index |
Returns
Type | Description |
---|---|
List<ItemIndexValue> | indexed content |
SupportsItem(Guid)
Determine if this indexer supports a specific item type
Declaration
public bool SupportsItem(Guid itemType)
Parameters
Type | Name | Description |
---|---|---|
Guid | itemType | item type |
Returns
Type | Description |
---|---|
bool | is supported |