C# Class Core.API.CoreDocument

Afficher le fichier Open project: brunomlopes/ILoveLucene

Private Properties

Свойство Type Description
CoreDocument System
FieldForLearning Lucene.Net.Documents.Field
PopulateDocument CoreDocument
RequireFields void
SetField CoreDocument

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

CoreDocument() public méthode

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"
Résultat System

GetDocumentId() public méthode

public GetDocumentId ( ) : DocumentId
Résultat DocumentId

GetString() public méthode

public GetString ( string fieldName ) : string
fieldName string
Résultat string

GetStringList() public méthode

public GetStringList ( string fieldName ) : IEnumerable
fieldName string
Résultat IEnumerable

Index() public méthode

public Index ( string fieldName ) : CoreDocument
fieldName string
Résultat CoreDocument

Rehydrate() public static méthode

public static Rehydrate ( Document document ) : CoreDocument
document Document
Résultat CoreDocument

SetItemIdForLearning() public méthode

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
Résultat CoreDocument

SetLearningId() public méthode

public SetLearningId ( string id ) : CoreDocument
id string
Résultat CoreDocument

SetLearnings() public méthode

public SetLearnings ( IEnumerable learnings ) : CoreDocument
learnings IEnumerable
Résultat CoreDocument

Store() public méthode

public Store ( string fieldName ) : CoreDocument
fieldName string
Résultat CoreDocument

Tag() public méthode

public Tag ( string tag ) : CoreDocument
tag string
Résultat CoreDocument