Class TrackingIndexWriter
Inheritance
System.Object
TrackingIndexWriter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Lucene.Net.dll
Syntax
public class TrackingIndexWriter
Constructors
|
Improve this Doc
View Source
TrackingIndexWriter(IndexWriter)
Declaration
public TrackingIndexWriter(IndexWriter writer)
Parameters
Properties
|
Improve this Doc
View Source
Generation
Return the current generation being indexed.
Declaration
public virtual long Generation { get; }
Property Value
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
IndexWriter
Declaration
public virtual IndexWriter IndexWriter { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddDocument(IEnumerable<IIndexableField>)
Declaration
public virtual long AddDocument(IEnumerable<IIndexableField> d)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<IIndexableField> |
d |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AddDocument(IEnumerable<IIndexableField>, Analyzer)
Declaration
public virtual long AddDocument(IEnumerable<IIndexableField> d, Analyzer a)
Parameters
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AddDocuments(IEnumerable<IEnumerable<IIndexableField>>)
Declaration
public virtual long AddDocuments(IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<IIndexableField>> |
docs |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AddDocuments(IEnumerable<IEnumerable<IIndexableField>>, Analyzer)
Declaration
public virtual long AddDocuments(IEnumerable<IEnumerable<IIndexableField>> docs, Analyzer a)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<IIndexableField>> |
docs |
|
Analyzer |
a |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AddIndexes(IndexReader[])
Declaration
public virtual long AddIndexes(params IndexReader[] readers)
Parameters
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
AddIndexes(Directory[])
Declaration
public virtual long AddIndexes(params Directory[] dirs)
Parameters
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
DeleteAll()
Calls DeleteAll() and returns the
generation that reflects this change.
Declaration
public virtual long DeleteAll()
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
DeleteDocuments(Term)
Declaration
public virtual long DeleteDocuments(Term t)
Parameters
Type |
Name |
Description |
Term |
t |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
DeleteDocuments(Term[])
Declaration
public virtual long DeleteDocuments(params Term[] terms)
Parameters
Type |
Name |
Description |
Term[] |
terms |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
DeleteDocuments(Query)
Declaration
public virtual long DeleteDocuments(Query q)
Parameters
Type |
Name |
Description |
Query |
q |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
DeleteDocuments(Query[])
Declaration
public virtual long DeleteDocuments(params Query[] queries)
Parameters
Type |
Name |
Description |
Query[] |
queries |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
GetAndIncrementGeneration()
Return and increment current gen.
Note
This API is for internal purposes only and might change in incompatible ways in the next release.
Declaration
public virtual long GetAndIncrementGeneration()
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
TryDeleteDocument(IndexReader, Int32)
Declaration
public virtual long TryDeleteDocument(IndexReader reader, int docID)
Parameters
Type |
Name |
Description |
IndexReader |
reader |
|
System.Int32 |
docID |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
UpdateDocument(Term, IEnumerable<IIndexableField>)
Declaration
public virtual long UpdateDocument(Term t, IEnumerable<IIndexableField> d)
Parameters
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
UpdateDocument(Term, IEnumerable<IIndexableField>, Analyzer)
Declaration
public virtual long UpdateDocument(Term t, IEnumerable<IIndexableField> d, Analyzer a)
Parameters
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>)
Declaration
public virtual long UpdateDocuments(Term t, IEnumerable<IEnumerable<IIndexableField>> docs)
Parameters
Type |
Name |
Description |
Term |
t |
|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<IIndexableField>> |
docs |
|
Returns
Type |
Description |
System.Int64 |
|
|
Improve this Doc
View Source
UpdateDocuments(Term, IEnumerable<IEnumerable<IIndexableField>>, Analyzer)
Declaration
public virtual long UpdateDocuments(Term t, IEnumerable<IEnumerable<IIndexableField>> docs, Analyzer a)
Parameters
Type |
Name |
Description |
Term |
t |
|
System.Collections.Generic.IEnumerable<System.Collections.Generic.IEnumerable<IIndexableField>> |
docs |
|
Analyzer |
a |
|
Returns
Type |
Description |
System.Int64 |
|