Class GraphSearchFacet
Represents search options used for graph searches.
Graph searches find items directly related to a TargetItem
.
Inheritance
System.Object
GraphSearchFacet
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class GraphSearchFacet : object
Examples
// Search for all VariableStatistics related to the PhysicalInstance.
var facet = new GraphSearchFacet();
facet.TargetItem = physicalInstanceIdentifier;
facet.UseDistinctTargetItem = true;
facet.UseDistinctResultItem = true;
facet.ItemTypes.Add(DdiItemType.VariableStatistic);
// Perform the search.
var results = client.GetRepositoryItemDescriptionsBySubject(facet);
// Write a line for each result.
foreach (var result in results)
{
Console.WriteLine(result.Label["en-US"]);
}
Constructors
GraphSearchFacet()
Initializes a new instance of the GraphSearchFacet class.
Declaration
public GraphSearchFacet()
Properties
ItemTypes
Gets the types of items to be found.
Declaration
public Collection<Guid> ItemTypes { get; }
Property Value
Type | Description |
---|---|
Collection<Guid> |
Predicate
Gets or sets the predicate that defines relationship types to be followed while searching.
Declaration
public Guid Predicate { get; set; }
Property Value
Type | Description |
---|---|
Guid |
TargetItem
Gets or sets the target item, to which search results must be related.
Declaration
public IdentifierTriple TargetItem { get; set; }
Property Value
Type | Description |
---|---|
IdentifierTriple |
UseDistinctResultItem
Gets or sets a value indicating whether only one version of each matching item will be returned, or if all matching versions of items should be returned.
Declaration
public bool UseDistinctResultItem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
UseDistinctTargetItem
Gets or sets a value indicating whether only the explicit version of the target item will be searched, or if all versions of the target item will be searched.
Declaration
public bool UseDistinctTargetItem { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |