C# 클래스 Raven.Database.Indexing.AnonymousObjectToLuceneDocumentConverter

파일 보기 프로젝트 열기: nhsevidence/ravendb 1 사용 예제들

공개 메소드들

메소드 설명
AnonymousObjectToLuceneDocumentConverter ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : System
Index ( RavenJObject document, Raven.Database.Indexing.IndexDefinition indexDefinition, Field defaultStorage ) : IEnumerable
Index ( object val, PropertyDescriptorCollection properties, Raven.Database.Indexing.IndexDefinition indexDefinition, Field defaultStorage ) : IEnumerable

비공개 메소드들

메소드 설명
CreateFieldWithCaching ( string name, string value, Field store, Field index ) : Field
CreateFields ( string name, object value, Raven.Database.Indexing.IndexDefinition indexDefinition, Field defaultStorage ) : IEnumerable

This method generate the fields for indexing documents in lucene from the values. Given a name and a value, it has the following behavior: * If the value is enumerable, index all the items in the enumerable under the same field name * If the value is null, create a single field with the supplied name with the unanalyzed value 'NULL_VALUE' * If the value is string or was set to not analyzed, create a single field with the supplied name * If the value is date, create a single field with millisecond precision with the supplied name * If the value is numeric (int, long, double, decimal, or float) will create two fields: 1. with the supplied name, containing the numeric value as an unanalyzed string - useful for direct queries 2. with the name: name +'_Range', containing the numeric value in a form that allows range queries

CreateNumericFieldWithCaching ( string name, object value, Field defaultStorage ) : IEnumerable
GetPropertyValue ( RavenJToken property ) : object
ShouldTreatAsEnumerable ( IEnumerable itemsToIndex ) : bool

메소드 상세

AnonymousObjectToLuceneDocumentConverter() 공개 메소드

public AnonymousObjectToLuceneDocumentConverter ( Raven.Database.Indexing.IndexDefinition indexDefinition ) : System
indexDefinition Raven.Database.Indexing.IndexDefinition
리턴 System

Index() 공개 메소드

public Index ( RavenJObject document, Raven.Database.Indexing.IndexDefinition indexDefinition, Field defaultStorage ) : IEnumerable
document RavenJObject
indexDefinition Raven.Database.Indexing.IndexDefinition
defaultStorage Lucene.Net.Documents.Field
리턴 IEnumerable

Index() 공개 메소드

public Index ( object val, PropertyDescriptorCollection properties, Raven.Database.Indexing.IndexDefinition indexDefinition, Field defaultStorage ) : IEnumerable
val object
properties System.ComponentModel.PropertyDescriptorCollection
indexDefinition Raven.Database.Indexing.IndexDefinition
defaultStorage Lucene.Net.Documents.Field
리턴 IEnumerable