Show / Hide Table of Contents

Class SetSearchFacet

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

Inheritance
System.Object
SetSearchFacet
Namespace: Algenta.Colectica.Model.Repository
Assembly: Algenta.Colectica.Model.dll
Syntax
public class SetSearchFacet : object
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
public Collection<Guid> ItemTypes { get; }
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
public Collection<Guid> LeafItemTypes { get; }
Property Value
Type Description
Collection<Guid>

Predicate

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

Declaration
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
public bool ReverseTraversal { get; set; }
Property Value
Type Description
System.Boolean

Extension Methods

Extensions.Yield<T>(T)
Back to top Copyright © 2009-2018 Colectica