Class ExamineExtensions
Extension methods for Examine.
Inheritance
System.Object
Namespace: Umbraco.Web
Assembly: Umbraco.Web.dll
Syntax
public static class ExamineExtensions
Methods
View SourceToPublishedSearchResults(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.Collections.Generic.IEnumerable<ISearchResult> | results | The search results. |
IPublishedCache | cache | The cache to fetch the content from. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PublishedSearchResult> | 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.ArgumentNullException | 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.Collections.Generic.IEnumerable<ISearchResult> | results | The search results. |
IPublishedSnapshot | snapshot | The snapshot. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<PublishedSearchResult> | 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.ArgumentNullException | snapshot |