C# 클래스 Core.API.CoreDocument

파일 보기 프로젝트 열기: brunomlopes/ILoveLucene

Private Properties

프로퍼티 타입 설명
CoreDocument System
FieldForLearning Lucene.Net.Documents.Field
PopulateDocument CoreDocument
RequireFields void
SetField CoreDocument

공개 메소드들

메소드 설명
CoreDocument ( IItemSource itemSource, IConverter converter, string id, string name, string type ) : System

Populates the document from the converter

GetDocumentId ( ) : DocumentId
GetString ( string fieldName ) : string
GetStringList ( string fieldName ) : IEnumerable
Index ( string fieldName ) : CoreDocument
Rehydrate ( Document document ) : CoreDocument
SetItemIdForLearning ( string id ) : CoreDocument

Use this value in the learning hash instead of the item id. Used by process source to learn based on window title instead of process identifier

SetLearningId ( string id ) : CoreDocument
SetLearnings ( IEnumerable learnings ) : CoreDocument
Store ( string fieldName ) : CoreDocument
Tag ( string tag ) : CoreDocument

비공개 메소드들

메소드 설명
CoreDocument ( Lucene.Net.Documents.Document document ) : System
FieldForLearning ( string learning ) : Field
PopulateDocument ( string sourceId, string converterId, string id, string name, string type ) : CoreDocument
RequireFields ( ) : void
SetField ( string fieldName, IEnumerable content, Field analyzed, Field withTermVector ) : CoreDocument

메소드 상세

CoreDocument() 공개 메소드

Populates the document from the converter
public CoreDocument ( IItemSource itemSource, IConverter converter, string id, string name, string type ) : System
itemSource IItemSource item from which this document was retrieved
converter IConverter converter identifier
id string item identifier
name string item name that is used to be indexed
type string Type name used in the indexer and later on in the searcher to allow the user to filter by type /// Search would be something like "process firefox"
리턴 System

GetDocumentId() 공개 메소드

public GetDocumentId ( ) : DocumentId
리턴 DocumentId

GetString() 공개 메소드

public GetString ( string fieldName ) : string
fieldName string
리턴 string

GetStringList() 공개 메소드

public GetStringList ( string fieldName ) : IEnumerable
fieldName string
리턴 IEnumerable

Index() 공개 메소드

public Index ( string fieldName ) : CoreDocument
fieldName string
리턴 CoreDocument

Rehydrate() 공개 정적인 메소드

public static Rehydrate ( Document document ) : CoreDocument
document Document
리턴 CoreDocument

SetItemIdForLearning() 공개 메소드

Use this value in the learning hash instead of the item id. Used by process source to learn based on window title instead of process identifier
public SetItemIdForLearning ( string id ) : CoreDocument
id string
리턴 CoreDocument

SetLearningId() 공개 메소드

public SetLearningId ( string id ) : CoreDocument
id string
리턴 CoreDocument

SetLearnings() 공개 메소드

public SetLearnings ( IEnumerable learnings ) : CoreDocument
learnings IEnumerable
리턴 CoreDocument

Store() 공개 메소드

public Store ( string fieldName ) : CoreDocument
fieldName string
리턴 CoreDocument

Tag() 공개 메소드

public Tag ( string tag ) : CoreDocument
tag string
리턴 CoreDocument