C# Class NuGet.Indexing.DocumentCreator

显示文件 Open project: NuGet/NuGet.Services.Metadata Class Usage Examples

Public Methods

Method Description
CreateCommitMetadata ( System.DateTime commitTimeStamp, string description, int count, string trace ) : LuceneCommitMetadata
CreateDocument ( string>.IDictionary package ) : Lucene.Net.Documents.Document
CreateIndexWriter ( Lucene directory, bool create ) : IndexWriter

Private Methods

Method Description
AddDateField ( Lucene.Net.Documents.Document document, string destination, DateTimeOffset date ) : void
AddDates ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
AddDependencies ( Lucene.Net.Documents.Document document, string>.IDictionary package ) : void
AddField ( Lucene.Net.Documents.Document document, string destination, string>.IDictionary package, string source, Field index, float boost = 1.0f ) : void
AddField ( Lucene.Net.Documents.Document document, string destination, string value, Field index, float boost = 1.0f ) : void
AddId ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
AddListed ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
AddPackageSize ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
AddRequiresLicenseAcceptance ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
AddSortableTitle ( Lucene.Net.Documents.Document document, string>.IDictionary package ) : void
AddSupportedFrameworks ( Lucene.Net.Documents.Document document, string>.IDictionary package ) : void
AddTitle ( Lucene.Net.Documents.Document document, string>.IDictionary package ) : void
AddVersion ( Lucene.Net.Documents.Document document, string>.IDictionary package, List errors ) : void
CheckErrors ( List errors ) : void
DetermineLanguageBoost ( Lucene.Net.Documents.Document document, string>.IDictionary package ) : void

Method Details

CreateCommitMetadata() public static method

public static CreateCommitMetadata ( System.DateTime commitTimeStamp, string description, int count, string trace ) : LuceneCommitMetadata
commitTimeStamp System.DateTime
description string
count int
trace string
return LuceneCommitMetadata

CreateDocument() public static method

public static CreateDocument ( string>.IDictionary package ) : Lucene.Net.Documents.Document
package string>.IDictionary
return Lucene.Net.Documents.Document

CreateIndexWriter() public static method

public static CreateIndexWriter ( Lucene directory, bool create ) : IndexWriter
directory Lucene
create bool
return Lucene.Net.Index.IndexWriter