C# Class Lucene.Net.Index.DocHelper

Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Properties

Property Type Description
All IndexableField>.IDictionary
CustomType Lucene.Net.Documents.FieldType
CustomType2 Lucene.Net.Documents.FieldType
CustomType3 Lucene.Net.Documents.FieldType
CustomType5 Lucene.Net.Documents.FieldType
CustomType6 Lucene.Net.Documents.FieldType
CustomType7 Lucene.Net.Documents.FieldType
CustomType8 Lucene.Net.Documents.FieldType
FIELD_2_FREQS int[]
FIELD_UTF2_FREQS int[]
Fields Lucene.Net.Documents.Field[]
Indexed IndexableField>.IDictionary
KeyField Lucene.Net.Documents.Field
LARGE_LAZY_FIELD_TEXT string
LAZY_FIELD_BINARY_BYTES byte[]
LargeLazyField Lucene.Net.Documents.Field
Lazy IndexableField>.IDictionary
LazyField Lucene.Net.Documents.Field
LazyFieldBinary Lucene.Net.Documents.Field
NameValues object>.IDictionary
NoNorms IndexableField>.IDictionary
NoNormsField Lucene.Net.Documents.Field
NoTFField Lucene.Net.Documents.Field
NoTf IndexableField>.IDictionary
Notermvector IndexableField>.IDictionary
Stored IndexableField>.IDictionary
Termvector IndexableField>.IDictionary
TextField1 Lucene.Net.Documents.Field
TextField2 Lucene.Net.Documents.Field
TextField3 Lucene.Net.Documents.Field
TextUtfField1 Lucene.Net.Documents.Field
TextUtfField2 Lucene.Net.Documents.Field
UnIndField Lucene.Net.Documents.Field
UnStoredField1 Lucene.Net.Documents.Field
UnStoredField2 Lucene.Net.Documents.Field
Unindexed IndexableField>.IDictionary
Unstored IndexableField>.IDictionary

Public Methods

Method Description
CreateDocument ( int n, string indexName, int numFields ) : Lucene.Net.Documents.Document
NumFields ( Lucene.Net.Documents.Document doc ) : int
SetupDoc ( Lucene.Net.Documents.Document doc ) : void

Adds the fields above to a document

WriteDoc ( Random random, Directory dir, Analyzer analyzer, Similarity similarity, Lucene.Net.Documents.Document doc ) : Lucene.Net.Index.SegmentCommitInfo

Writes the document to the directory using the analyzer and the similarity score; returns the SegmentInfo describing the new segment

WriteDoc ( Random random, Directory dir, Lucene.Net.Documents.Document doc ) : Lucene.Net.Index.SegmentCommitInfo

Writes the document to the directory using a segment named "test"; returns the SegmentInfo describing the new segment

Private Methods

Method Description
Add ( IndexableField>.IDictionary map, IndexableField field ) : void
DocHelper ( ) : Lucene.Net.Documents

Method Details

CreateDocument() public static method

public static CreateDocument ( int n, string indexName, int numFields ) : Lucene.Net.Documents.Document
n int
indexName string
numFields int
return Lucene.Net.Documents.Document

NumFields() public static method

public static NumFields ( Lucene.Net.Documents.Document doc ) : int
doc Lucene.Net.Documents.Document
return int

SetupDoc() public static method

Adds the fields above to a document
public static SetupDoc ( Lucene.Net.Documents.Document doc ) : void
doc Lucene.Net.Documents.Document The document to write
return void

WriteDoc() public static method

Writes the document to the directory using the analyzer and the similarity score; returns the SegmentInfo describing the new segment
public static WriteDoc ( Random random, Directory dir, Analyzer analyzer, Similarity similarity, Lucene.Net.Documents.Document doc ) : Lucene.Net.Index.SegmentCommitInfo
random System.Random
dir Directory
analyzer Analyzer
similarity Similarity
doc Lucene.Net.Documents.Document
return Lucene.Net.Index.SegmentCommitInfo

WriteDoc() public static method

Writes the document to the directory using a segment named "test"; returns the SegmentInfo describing the new segment
public static WriteDoc ( Random random, Directory dir, Lucene.Net.Documents.Document doc ) : Lucene.Net.Index.SegmentCommitInfo
random System.Random
dir Directory
doc Lucene.Net.Documents.Document
return Lucene.Net.Index.SegmentCommitInfo

Property Details

All public_oe static_oe property

public static IDictionary All
return IndexableField>.IDictionary

CustomType public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType
return Lucene.Net.Documents.FieldType

CustomType2 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType2
return Lucene.Net.Documents.FieldType

CustomType3 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType3
return Lucene.Net.Documents.FieldType

CustomType5 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType5
return Lucene.Net.Documents.FieldType

CustomType6 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType6
return Lucene.Net.Documents.FieldType

CustomType7 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType7
return Lucene.Net.Documents.FieldType

CustomType8 public_oe static_oe property

public static FieldType,Lucene.Net.Documents CustomType8
return Lucene.Net.Documents.FieldType

FIELD_2_FREQS public_oe static_oe property

public static int[] FIELD_2_FREQS
return int[]

FIELD_UTF2_FREQS public_oe static_oe property

public static int[] FIELD_UTF2_FREQS
return int[]

Fields public_oe static_oe property

public static Field[],Lucene.Net.Documents Fields
return Lucene.Net.Documents.Field[]

Indexed public_oe static_oe property

public static IDictionary Indexed
return IndexableField>.IDictionary

KeyField public_oe static_oe property

public static Field,Lucene.Net.Documents KeyField
return Lucene.Net.Documents.Field

LARGE_LAZY_FIELD_TEXT public_oe static_oe property

public static string LARGE_LAZY_FIELD_TEXT
return string

LAZY_FIELD_BINARY_BYTES public_oe static_oe property

public static byte[] LAZY_FIELD_BINARY_BYTES
return byte[]

LargeLazyField public_oe static_oe property

public static Field,Lucene.Net.Documents LargeLazyField
return Lucene.Net.Documents.Field

Lazy public_oe static_oe property

public static IDictionary Lazy
return IndexableField>.IDictionary

LazyField public_oe static_oe property

public static Field,Lucene.Net.Documents LazyField
return Lucene.Net.Documents.Field

LazyFieldBinary public_oe static_oe property

public static Field,Lucene.Net.Documents LazyFieldBinary
return Lucene.Net.Documents.Field

NameValues public_oe static_oe property

public static IDictionary NameValues
return object>.IDictionary

NoNorms public_oe static_oe property

public static IDictionary NoNorms
return IndexableField>.IDictionary

NoNormsField public_oe static_oe property

public static Field,Lucene.Net.Documents NoNormsField
return Lucene.Net.Documents.Field

NoTFField public_oe static_oe property

public static Field,Lucene.Net.Documents NoTFField
return Lucene.Net.Documents.Field

NoTf public_oe static_oe property

public static IDictionary NoTf
return IndexableField>.IDictionary

Notermvector public_oe static_oe property

public static IDictionary Notermvector
return IndexableField>.IDictionary

Stored public_oe static_oe property

public static IDictionary Stored
return IndexableField>.IDictionary

Termvector public_oe static_oe property

public static IDictionary Termvector
return IndexableField>.IDictionary

TextField1 public_oe static_oe property

public static Field,Lucene.Net.Documents TextField1
return Lucene.Net.Documents.Field

TextField2 public_oe static_oe property

public static Field,Lucene.Net.Documents TextField2
return Lucene.Net.Documents.Field

TextField3 public_oe static_oe property

public static Field,Lucene.Net.Documents TextField3
return Lucene.Net.Documents.Field

TextUtfField1 public_oe static_oe property

public static Field,Lucene.Net.Documents TextUtfField1
return Lucene.Net.Documents.Field

TextUtfField2 public_oe static_oe property

public static Field,Lucene.Net.Documents TextUtfField2
return Lucene.Net.Documents.Field

UnIndField public_oe static_oe property

public static Field,Lucene.Net.Documents UnIndField
return Lucene.Net.Documents.Field

UnStoredField1 public_oe static_oe property

public static Field,Lucene.Net.Documents UnStoredField1
return Lucene.Net.Documents.Field

UnStoredField2 public_oe static_oe property

public static Field,Lucene.Net.Documents UnStoredField2
return Lucene.Net.Documents.Field

Unindexed public_oe static_oe property

public static IDictionary Unindexed
return IndexableField>.IDictionary

Unstored public_oe static_oe property

public static IDictionary Unstored
return IndexableField>.IDictionary