C# Класс Core.API.CoreDocument

Показать файл Открыть проект

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