Class ExamineExtensions
Extension methods for Examine.
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: cs.temp.dll.dll
Syntax
public static class ExamineExtensions
Methods
ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedCache)
Creates an System.Collections.Generic.IEnumerable<T> containing all content from the cache
.
Declaration
public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedCache cache)
Parameters
Type | Name | Description |
---|---|---|
System. |
results | The search results. |
IPublished |
cache | The cache to fetch the content from. |
Returns
Type | Description |
---|---|
System. |
An System.Collections.Generic.IEnumerable<T> containing all content. |
Remarks
Search results are skipped if it can't be fetched from the cache
by its integer id.
Exceptions
Type | Condition |
---|---|
System. |
cache |
ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedSnapshot)
Creates an System.Collections.Generic.IEnumerable<T> containing all content, media or members from the snapshot
.
Declaration
public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
System. |
results | The search results. |
IPublished |
snapshot | The snapshot. |
Returns
Type | Description |
---|---|
System. |
An System.Collections.Generic.IEnumerable<T> containing all content, media or members. |
Remarks
Search results are skipped if it can't be fetched from the respective cache by its integer id.
Exceptions
Type | Condition |
---|---|
System. |
snapshot |