This section documents the complete Conjunction API.
Represents the set of comparison operators a SearchQueryRule can be configured to use, when comparing its selected property against its dynamically provided value or default value.
The operator represents a "set that contains just the specified" comparison.
The operator represents a "contains" comparison.
The operator represents a "equal" comparison.
The operator represents a "greater than" comparison.
The operator represents a "greater than or equal" comparison.
The operator represents a "less than" comparison.
The operator represents a "less than or equal" comparison.
The operator represents a "set that contains everything except the specified" comparison.
The operator represents a "not contains" comparison.
The operator represents a "not equal" comparison.
Represents the default factory for building types of ComparisonOperator.
Provides functionality to build types of ComparisonOperator.
Creates a new ComparisonOperator based on the raw comparison operator value.
| Name | Description |
|---|---|
| rawComparisonOperator | System.String The raw logical operator value. |
A comparison operator type.
Provides functionality to build types of LogicalOperator.
Creates a new LogicalOperator based on the raw logical operator value.
| Name | Description |
|---|---|
| rawLogicalOperator | System.String The raw logical operator value. |
A logical operator type.
Provides functionality to build instances of type SearchQueryGrouping.
Creates a new SearchQueryGrouping based on the logical operator.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| configuredLogicalOperator | System.String The raw logical operator value. |
A search query grouping instance.
Gets the ILogicalOperatorFactory that is associated with the given search query grouping factory.
Provides functionality to build instances of type SearchQueryRule.
Gets the IComparisonOperatorFactory that is associated with the given search query rule factory.
Create(associatedPropertyName, configuredComparisonOperator, dynamicValueProvidingParameter, defaultValue)
Creates a new SearchQueryRule based on the comparison operator.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| associatedPropertyName | System.String The associated property name of T. |
| configuredComparisonOperator | System.String The configured comparison operator. |
| dynamicValueProvidingParameter | System.String The dynamic value providing parameter (optional). |
| defaultValue | System.String The default value (optional). |
A search query rule instance.
Represents the default factory for building types of LogicalOperator.
Represents the default factory for building instances of type SearchQueryGrouping.
Represents the default factory for building instances of type SearchQueryRule.
Represents the base class of an indexable entity that is used when querying data from the search index.
The base abstraction for all search query elements.
- T - The type of IndexableEntity implementation to use.
Dispatches to the specific visit method for this search query element type. For example, SearchQueryRule will call into Processing.ISearchQueryElementVisitor.VisitSearchQueryRule(SearchQueryRule).
| Name | Description |
|---|---|
| visitor | Processing.ISearchQueryElementVisitor<T> The visitor to visit this search query element with. |
Represents the set of logical operators a SearchQueryGrouping can be configured to use, in order to determine the logical relationship between its children.
The operator represents a "logical AND".
The operator represents a "logical OR".
Represents a visitor for search query elements.
- T - The type of IndexableEntity implementation to use.
Visits the SearchQueryGrouping before it visits its children.
| Name | Description |
|---|---|
| searchQueryGrouping | SearchQueryGrouping<T> The search query grouping to visit. |
Visits the SearchQueryGrouping after it has visited its children.
Visits the SearchQueryRule.
| Name | Description |
|---|---|
| searchQueryRule | SearchQueryRule<T> The search query rule to visit. |
Represents a specialized visitor that can build up a predicate of type Expression<Func<T, bool>> from search query elements.
- T - The type of IndexableEntity implementation to use.
Returns the aggregated output produced by the predicate builder.
An aggregated predicate expression.
Gets the ISearchQueryValueProvider that is associated with the given predicate builder.
Represents the default ISearchQueryPredicateBuilder implementation.
- T - The type of IndexableEntity implementation to use.
Provides functionality to deliver the index name that will be used when performing search queries.
Gets the name representing this index to query.
Represents the index name provider for Sitecore that, based on the Sitecore.Context, will resolve the either the Master or Web index.
Provides functionality to retrieve a ISearchQueryElement root element from a given configuration.
Returns the search query element root.
- T - The type of IndexableEntity implementation to use.
The search query element root
Gets the ISearchQueryGroupingFactory that is associated with the given provider.
Gets the ISearchQueryRuleFactory that is associated with the given provider.
Represents a Sitecore configured search query element provider, accepting a Sitecore.Data.Items.Item root, which gets transformed into a ISearchQueryElement root.
Provides functionality for retrieving dynamically provided values used by SearchQueryRule elements.
Returns the value needed by the search query rule, which can either be a default or dynamically provided value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| searchQueryRule | SearchQueryRule<T> The specified search query rule. |
A typed value.
Represents a name/value pair based value provider, where the dynamic values required by the SearchQueryRule elements are resolved from name/value pairs, like query strings etc.
Represents the base class of an search query value provider.
Retruns the raw value of either the default or dynamically provided value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| searchQueryRule | SearchQueryRule<T> The specifed search query rule |
A raw string value of either the default or dynamically provided value
Returns the value needed by the search query value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| searchQueryRule | SearchQueryRule<T> The specifed search query rule |
A typed value
Provides functionality to retrievin a SearchResult from a given SearchCriteria.
- T - The type of IndexableEntity implementation to use.
Performs a query using the provided searchCriteria to retrieve a SearchResult.
| Name | Description |
|---|---|
| searchCriteria | SearchCriteria |
A SearchResult containing the search result
Gets the IIndexNameProvider that is associated with the given search result repository.
Gets the ISearchQueryElementProvider that is associated with the given search result repository.
Gets the ISearchQueryPredicateBuilder that is associated with the given search result repository.
Represents the main entry point for retrieving a SearchResult from a given SearchCriteria.
- T - The type of IndexableEntity implementation to use.
Represents the search criteria used by ISearchResultRepository implementations
Gets the search path used to constraint where to look for documents in the search index.
Represents a search query grouping that defines a group of one or more search query elements, and their logical relationship to each other.
- T - The type of IndexableEntity implementation to use.
Gets the LogicalOperator that is associated with the given search query grouping.
Gets the search query elements children.
Represents a search query rule that defines how a given property of type T should be compared againts either a dynamically provided value or default value.
This class could eventually also include whether to use fuzzy search or not, and if so, how much fuzzyness to use (number).
- T - The type of IndexableEntity implementation to use.
Gets the ComparisonOperator that is associated with the given search query rule.
Gets the default value that is associated with the given search query rule.
Gets the dynamic value providing parameter that is associated with the given search query rule.
Gets the property selector that is associated with the given search query rule.
Represents the search result returned from querying a specific SearchCriteria using the SearchResultRepository.
- T - The type of IndexableEntity implementation to use.
Gets the hits found.
Gets the total number of search results found.
Provides functionalities to build new ISearchResultRepository instances using a specified configuration.
- T - The type of IndexableEntity implementation to use.
Creates a new ISearchResultRepository instance using the specified builder configuration.
| Name | Description |
|---|---|
| searchQueryElementProvider | Providers.SearchQueryElement.ISearchQueryElementProvider |
| searchQueryValueProvider | Providers.SearchQueryValue.ISearchQueryValueProvider |
Configures the builder to use a given IIndexNameProvider type.
- TIndexNameProvider - The type of IIndexNameProvider to use.
Configures the builder to use a given ISearchQueryPredicateBuilder type.
- TSearchQueryPredicateBuilder - The type of ISearchQueryPredicateBuilder to use.
Provides functionalities for constructing expression trees, based on a given property selector and value.
Converts the specified propertySelector to an 'between' expression using the given lowerValue and upperValue.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector |
| lowerValue | System.Object The lower-bound value |
| upperValue | System.Object The upper-bound value |
| inclusion | Sitecore.ContentSearch.Linq.Inclusion The state of how the bounds are included |
Converts the specified propertySelector to an 'contains' expression using the given value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector |
| value | System.String The value |
An expression on the form 'nameOfPropertySelector contains value'
Converts the specified propertySelector of type System.Collections.IEnumerable to an 'contains' expression using the given value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector (must be of type System.Collections.IEnumerable) |
| value | System.Object The value |
An expression on the form 'nameOfPropertySelector contains value'
Converts the specified propertySelector to an 'equals' expression using the given value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector |
| value | System.Object The value |
An expression on the form 'nameOfPropertySelector equals value'
Converts the specified propertySelector to an 'greater-than-or-equals' expression using the given value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector |
| value | System.Object The value |
An expression on the form 'nameOfPropertySelector greater-than-or-equals value'
Converts the specified propertySelector to an 'less-than-or-equals' expression using the given value.
- T - The type of IndexableEntity implementation to use.
| Name | Description |
|---|---|
| propertySelector | System.Linq.Expressions.Expression{System.Func{T,System.Object}} The property selector |
| value | System.Object The value |
An expression on the form 'nameOfPropertySelector less-than-or-equals value'
Provides functionalities for converting raw System.String values into typed values.
Converts the value to the specified valueType.
| Name | Description |
|---|---|
| valueType | System.Type The value type that the specified value needs to be converted into. |
| value | System.String The value that needs to be converted. |
Tries to convert the specified value into range value parts.
The output parameter rangeValueParts is intended to be used within the RangeValue type.
| Name | Description |
|---|---|
| value | System.String The value that needs to be converted. |
| rangeValueParts | System.Tuple{System.String,System.String} The range value parts ressembling the range values, if converted. |