C# 클래스 Ng.SearchIndexFromCatalogCollector

상속: NuGet.Services.Metadata.Catalog.CommitCollector
파일 보기 프로젝트 열기: NuGet/NuGet.Services.Metadata 1 사용 예제들

공개 메소드들

메소드 설명
EnsureCommitted ( ) : void
SearchIndexFromCatalogCollector ( ILogger logger, Uri index, IndexWriter indexWriter, bool commitEachBatch, string baseAddress, Func handlerFunc = null ) : Lucene.Net.Documents

보호된 메소드들

메소드 설명
OnProcessBatch ( CollectorHttpClient client, IEnumerable items, JToken context, System.DateTime commitTimeStamp, bool isLastBatch, CancellationToken cancellationToken ) : Task

비공개 메소드들

메소드 설명
Add ( Lucene.Net.Documents.Document doc, string name, int value, Field store, Field index, Field termVector, float boost = 1.0f ) : void
Add ( Lucene.Net.Documents.Document doc, string name, string value, Field store, Field index, Field termVector, float boost = 1.0f ) : void
AddStoragePaths ( Lucene.Net.Documents.Document doc, IEnumerable storagePaths, string baseAddress ) : void
CreateDeleteQuery ( Newtonsoft.Json.Linq.JObject catalogItem ) : Query
DetermineLanguageBoost ( string id, string language ) : float
FetchCatalogItems ( CollectorHttpClient client, IEnumerable items, CancellationToken cancellationToken ) : Task>
GetCatalogStoragePaths ( Newtonsoft.Json.Linq.JObject index ) : IEnumerable
GetContext ( Newtonsoft.Json.Linq.JObject catalogItem ) : JToken
GetStoragePaths ( Newtonsoft.Json.Linq.JObject package ) : IEnumerable
NormalizeId ( Newtonsoft.Json.Linq.JObject catalogItem ) : void
ProcessCatalogIndex ( IndexWriter indexWriter, Newtonsoft.Json.Linq.JObject catalogIndex, string baseAddress ) : void
ProcessCatalogItems ( IndexWriter indexWriter, IEnumerable catalogItems, string baseAddress ) : void
ProcessPackageDelete ( IndexWriter indexWriter, Newtonsoft.Json.Linq.JObject catalogItem ) : void
ProcessPackageDetails ( IndexWriter indexWriter, Newtonsoft.Json.Linq.JObject catalogItem ) : void
UpdateCommitMetadata ( System.DateTime commitTimeStamp, int docsDifference ) : void

메소드 상세

EnsureCommitted() 공개 메소드

public EnsureCommitted ( ) : void
리턴 void

OnProcessBatch() 보호된 메소드

protected OnProcessBatch ( CollectorHttpClient client, IEnumerable items, JToken context, System.DateTime commitTimeStamp, bool isLastBatch, CancellationToken cancellationToken ) : Task
client NuGet.Services.Metadata.Catalog.CollectorHttpClient
items IEnumerable
context JToken
commitTimeStamp System.DateTime
isLastBatch bool
cancellationToken System.Threading.CancellationToken
리턴 Task

SearchIndexFromCatalogCollector() 공개 메소드

public SearchIndexFromCatalogCollector ( ILogger logger, Uri index, IndexWriter indexWriter, bool commitEachBatch, string baseAddress, Func handlerFunc = null ) : Lucene.Net.Documents
logger ILogger
index System.Uri
indexWriter Lucene.Net.Index.IndexWriter
commitEachBatch bool
baseAddress string
handlerFunc Func
리턴 Lucene.Net.Documents