C# 클래스 Lucene.Net.Index.ParallelReader

An IndexReader which reads multiple, parallel indexes. Each index added must have the same number of documents, but typically each contains different fields. Each document contains the union of the fields of all documents with the same document number. When searching, matches for a query term are from the first index added that has the field.

This is useful, e.g., with collections that have large fields which change rarely and small fields that change more frequently. The smaller fields may be re-indexed in a new index and both indexes may be searched together.

Warning: It is up to you to make sure all indexes are created and modified the same way. For example, if you add documents to one index, you need to add the same documents in the same order to the other indexes. Failure to do so will result in undefined behavior.

상속: IndexReader
파일 보기 프로젝트 열기: synhershko/lucene.net 1 사용 예제들

공개 메소드들

메소드 설명
Add ( IndexReader reader ) : void

Add an IndexReader.

Add ( IndexReader reader, bool ignoreStoredFields ) : void

Add an IndexReader whose stored fields will not be returned. This can accellerate search when stored fields are only needed from a subset of the IndexReaders.

of documents

of IndexReader.MaxDoc

Clone ( ) : Object
DocFreq ( Lucene.Net.Index.Term term ) : int
Document ( int n, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document
GetFieldNames ( IndexReader fieldNames ) : System.Collections.Generic.ICollection
GetSubReaders ( ) : Lucene.Net.Index.IndexReader[]
GetTermFreqVector ( int n, System field ) : ITermFreqVector
GetTermFreqVector ( int docNumber, System field, Lucene.Net.Index.TermVectorMapper mapper ) : void
GetTermFreqVector ( int docNumber, Lucene.Net.Index.TermVectorMapper mapper ) : void
GetTermFreqVectors ( int n ) : ITermFreqVector[]
HasNorms ( System field ) : bool
IsCurrent ( ) : bool

Checks recursively if all subreaders are up to date.

IsDeleted ( int n ) : bool
IsOptimized ( ) : bool

Checks recursively if all subindexes are optimized

Norms ( System field ) : byte[]
Norms ( System field, byte result, int offset ) : void
NumDocs ( ) : int
ParallelReader ( ) : System

Construct a ParallelReader.

Note that all subreaders are closed if this ParallelReader is closed.

ParallelReader ( bool closeSubReaders ) : System

Construct a ParallelReader.

Reopen ( ) : IndexReader

Tries to reopen the subreaders.
If one or more subreaders could be re-opened (i. e. subReader.reopen() returned a new instance != subReader), then a new ParallelReader instance is returned, otherwise this instance is returned.

A re-opened instance might share one or more subreaders with the old instance. Index modification operations result in undefined behavior when performed before the old instance is closed. (see IndexReader.Reopen()).

If subreaders are shared, then the reference count of those readers is increased to ensure that the subreaders remain open until the last referring reader is closed.

TermDocs ( ) : TermDocs
TermDocs ( Lucene.Net.Index.Term term ) : TermDocs
TermPositions ( ) : TermPositions
TermPositions ( Lucene.Net.Index.Term term ) : TermPositions
Terms ( ) : Lucene.Net.Index.TermEnum
Terms ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.TermEnum

보호된 메소드들

메소드 설명
DoClose ( ) : void
DoCommit ( string>.IDictionary commitUserData ) : void
DoDelete ( int n ) : void
DoReopen ( bool doClone ) : IndexReader
DoSetNorm ( int n, System field, byte value_Renamed ) : void
DoUndeleteAll ( ) : void

메소드 상세

Add() 공개 메소드

Add an IndexReader.
public Add ( IndexReader reader ) : void
reader IndexReader
리턴 void

Add() 공개 메소드

Add an IndexReader whose stored fields will not be returned. This can accellerate search when stored fields are only needed from a subset of the IndexReaders. of documents of IndexReader.MaxDoc
public Add ( IndexReader reader, bool ignoreStoredFields ) : void
reader IndexReader
ignoreStoredFields bool
리턴 void

Clone() 공개 메소드

public Clone ( ) : Object
리턴 System.Object

DoClose() 보호된 메소드

protected DoClose ( ) : void
리턴 void

DoCommit() 보호된 메소드

protected DoCommit ( string>.IDictionary commitUserData ) : void
commitUserData string>.IDictionary
리턴 void

DoDelete() 보호된 메소드

protected DoDelete ( int n ) : void
n int
리턴 void

DoReopen() 보호된 메소드

protected DoReopen ( bool doClone ) : IndexReader
doClone bool
리턴 IndexReader

DoSetNorm() 보호된 메소드

protected DoSetNorm ( int n, System field, byte value_Renamed ) : void
n int
field System
value_Renamed byte
리턴 void

DoUndeleteAll() 보호된 메소드

protected DoUndeleteAll ( ) : void
리턴 void

DocFreq() 공개 메소드

public DocFreq ( Lucene.Net.Index.Term term ) : int
term Lucene.Net.Index.Term
리턴 int

Document() 공개 메소드

public Document ( int n, Lucene.Net.Documents.FieldSelector fieldSelector ) : Lucene.Net.Documents.Document
n int
fieldSelector Lucene.Net.Documents.FieldSelector
리턴 Lucene.Net.Documents.Document

GetFieldNames() 공개 메소드

public GetFieldNames ( IndexReader fieldNames ) : System.Collections.Generic.ICollection
fieldNames IndexReader
리턴 System.Collections.Generic.ICollection

GetSubReaders() 공개 메소드

public GetSubReaders ( ) : Lucene.Net.Index.IndexReader[]
리턴 Lucene.Net.Index.IndexReader[]

GetTermFreqVector() 공개 메소드

public GetTermFreqVector ( int n, System field ) : ITermFreqVector
n int
field System
리턴 ITermFreqVector

GetTermFreqVector() 공개 메소드

public GetTermFreqVector ( int docNumber, System field, Lucene.Net.Index.TermVectorMapper mapper ) : void
docNumber int
field System
mapper Lucene.Net.Index.TermVectorMapper
리턴 void

GetTermFreqVector() 공개 메소드

public GetTermFreqVector ( int docNumber, Lucene.Net.Index.TermVectorMapper mapper ) : void
docNumber int
mapper Lucene.Net.Index.TermVectorMapper
리턴 void

GetTermFreqVectors() 공개 메소드

public GetTermFreqVectors ( int n ) : ITermFreqVector[]
n int
리턴 ITermFreqVector[]

HasNorms() 공개 메소드

public HasNorms ( System field ) : bool
field System
리턴 bool

IsCurrent() 공개 메소드

Checks recursively if all subreaders are up to date.
public IsCurrent ( ) : bool
리턴 bool

IsDeleted() 공개 메소드

public IsDeleted ( int n ) : bool
n int
리턴 bool

IsOptimized() 공개 메소드

Checks recursively if all subindexes are optimized
public IsOptimized ( ) : bool
리턴 bool

Norms() 공개 메소드

public Norms ( System field ) : byte[]
field System
리턴 byte[]

Norms() 공개 메소드

public Norms ( System field, byte result, int offset ) : void
field System
result byte
offset int
리턴 void

NumDocs() 공개 메소드

public NumDocs ( ) : int
리턴 int

ParallelReader() 공개 메소드

Construct a ParallelReader.

Note that all subreaders are closed if this ParallelReader is closed.

public ParallelReader ( ) : System
리턴 System

ParallelReader() 공개 메소드

Construct a ParallelReader.
public ParallelReader ( bool closeSubReaders ) : System
closeSubReaders bool indicates whether the subreaders should be closed /// when this ParallelReader is closed ///
리턴 System

Reopen() 공개 메소드

Tries to reopen the subreaders.
If one or more subreaders could be re-opened (i. e. subReader.reopen() returned a new instance != subReader), then a new ParallelReader instance is returned, otherwise this instance is returned.

A re-opened instance might share one or more subreaders with the old instance. Index modification operations result in undefined behavior when performed before the old instance is closed. (see IndexReader.Reopen()).

If subreaders are shared, then the reference count of those readers is increased to ensure that the subreaders remain open until the last referring reader is closed.

public Reopen ( ) : IndexReader
리턴 IndexReader

TermDocs() 공개 메소드

public TermDocs ( ) : TermDocs
리턴 TermDocs

TermDocs() 공개 메소드

public TermDocs ( Lucene.Net.Index.Term term ) : TermDocs
term Lucene.Net.Index.Term
리턴 TermDocs

TermPositions() 공개 메소드

public TermPositions ( ) : TermPositions
리턴 TermPositions

TermPositions() 공개 메소드

public TermPositions ( Lucene.Net.Index.Term term ) : TermPositions
term Lucene.Net.Index.Term
리턴 TermPositions

Terms() 공개 메소드

public Terms ( ) : Lucene.Net.Index.TermEnum
리턴 Lucene.Net.Index.TermEnum

Terms() 공개 메소드

public Terms ( Lucene.Net.Index.Term term ) : Lucene.Net.Index.TermEnum
term Lucene.Net.Index.Term
리턴 Lucene.Net.Index.TermEnum