Class ExamineExtensions
Extension methods for Examine.
Inheritance
System.Object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Infrastructure.dll
Syntax
public static class ExamineExtensions
Methods
View SourceToPublishedSearchResults(IEnumerable<ISearchResult>, ICacheManager)
Creates an snapshot
.
Declaration
public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, ICacheManager cacheManager)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISearchResult> | results | The search results. |
ICacheManager | cacheManager | The caches. |
Returns
Type | Description |
---|---|
IEnumerable<PublishedSearchResult> | An |
Remarks
Search results are skipped if it can't be fetched from the respective cache by its integer id.
ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedCache)
Creates an cache
.
Declaration
public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedCache cache)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISearchResult> | results | The search results. |
IPublishedCache | cache | The cache to fetch the content from. |
Returns
Type | Description |
---|---|
IEnumerable<PublishedSearchResult> | An |
Remarks
Search results are skipped if it can't be fetched from the cache
by its integer id.