C# Class OurUmbraco.Our.Examine.ProjectNodeIndexDataService

Data service used for projects
Inheritance: ISimpleDataService
Datei anzeigen Open project: umbraco/OurUmbraco

Public Methods

Method Description
GetAllData ( string indexType ) : IEnumerable
MapProjectToSimpleDataIndexItem ( IPublishedContent project, Examine.LuceneEngine.SimpleDataSet simpleDataSet, string indexType, int projectVotes, WikiFile files, int downloads, IEnumerable compatVersions ) : Examine.LuceneEngine.SimpleDataSet
ProjectIndexer_DocumentWriting ( object sender, Examine.LuceneEngine.DocumentWritingEventArgs e ) : void

Handle custom Lucene indexing when the lucene document is writing

ProjectIndexer_GatheringNodeData ( object sender, Examine.IndexingNodeDataEventArgs e ) : void

Need to ensures some custom data is added to this index

Private Methods

Method Description
AddNumericalVersionValue ( Examine.LuceneEngine.DocumentWritingEventArgs e, string fieldName, IEnumerable versions ) : void

Given the string versions, this will put them into the index as numerical versions, this way we can compare/range query, etc... on versions

This stores a numerical version as a Right padded 3 digit combined long number. Example: 7.5.0 would be: 007005000 = 7005000 4.11.0 would be: 004011000 = 4011000

EnsureUmbracoContext ( ) : Umbraco.Web.UmbracoContext

Method Details

GetAllData() public method

public GetAllData ( string indexType ) : IEnumerable
indexType string
return IEnumerable

MapProjectToSimpleDataIndexItem() public method

public MapProjectToSimpleDataIndexItem ( IPublishedContent project, Examine.LuceneEngine.SimpleDataSet simpleDataSet, string indexType, int projectVotes, WikiFile files, int downloads, IEnumerable compatVersions ) : Examine.LuceneEngine.SimpleDataSet
project IPublishedContent
simpleDataSet Examine.LuceneEngine.SimpleDataSet
indexType string
projectVotes int
files OurUmbraco.Wiki.BusinessLogic.WikiFile
downloads int
compatVersions IEnumerable
return Examine.LuceneEngine.SimpleDataSet

ProjectIndexer_DocumentWriting() public static method

Handle custom Lucene indexing when the lucene document is writing
public static ProjectIndexer_DocumentWriting ( object sender, Examine.LuceneEngine.DocumentWritingEventArgs e ) : void
sender object
e Examine.LuceneEngine.DocumentWritingEventArgs
return void

ProjectIndexer_GatheringNodeData() public static method

Need to ensures some custom data is added to this index
public static ProjectIndexer_GatheringNodeData ( object sender, Examine.IndexingNodeDataEventArgs e ) : void
sender object
e Examine.IndexingNodeDataEventArgs
return void