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>, 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.
ToPublishedSearchResults(IEnumerable<ISearchResult>, IPublishedSnapshot)
Creates an snapshot
.
Declaration
public static IEnumerable<PublishedSearchResult> ToPublishedSearchResults(this IEnumerable<ISearchResult> results, IPublishedSnapshot snapshot)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<ISearchResult> | results | The search results. |
IPublishedSnapshot | snapshot | The snapshot. |
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.