Show / Hide Table of Contents

Class SetSearchFacet

Represents search options used for searches within a set of items.

Inheritance
object
SetSearchFacet
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
[DataContract(Namespace = "http://ns.colectica.com/2009/07/")]
public class SetSearchFacet
Examples
// Search for all Categories in the DataRelationship's set.
var facet = new SetSearchFacet();
facet.ItemTypes.Add(DdiItemType.Category);

var resultIdentifiers = client.SearchTypedSet(
    dataRelationshipIdentifier, 
    facet);

// The set search only returns the identifiers of items.
// Request the description of each result here.
var results = client.GetRepositoryItemDescriptions(
    resultIdentifiers.ToIdentifierCollection());

// Write a line for each result.
foreach (var result in results)
{
    Console.WriteLine(result.Label["en-US"]);
}

Constructors

SetSearchFacet()

Initializes a new instance of the SetSearchFacet class.

Declaration
public SetSearchFacet()

Properties

ItemTypes

Gets the types of items to find.

Declaration
[DataMember(Name = "ItemTypes")]
public Collection<Guid> ItemTypes { get; set; }
Property Value
Type Description
Collection<Guid>

LeafItemTypes

Gets the types of items to treat as leafs, which can speed up the search by preventing the searcher from following certain paths that will not contain results.

Declaration
[DataMember(Name = "LeafItemTypes")]
public Collection<Guid> LeafItemTypes { get; set; }
Property Value
Type Description
Collection<Guid>

Predicate

Gets or sets the predicate that search results must match. See RelationshipPredicates.

Declaration
[DataMember]
public Guid Predicate { get; set; }
Property Value
Type Description
Guid

ReverseTraversal

Gets or sets a value indicating whether the set to search is defined as all items under the target item, or all items that contain the target item in their set.

Declaration
[DataMember]
public bool ReverseTraversal { get; set; }
Property Value
Type Description
bool

Extension Methods

Extensions.EnsureCollectionInstantiation(SetSearchFacet)
Extensions.Yield<T>(T)
In this article
Back to top Generated by DocFX