Lucene.Net
3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
|
Definition of configurable search indexes managed by the LuceneUpdater windows service. More...
Public Member Functions | |
IndexSet (XmlNode node) | |
Public constructor for IndexSet. An IndexSet is defined in XML configuration and is loaded via a custom configuration handler. | |
NameValueCollection | GetDeletionCollection () |
Retrieves a NameValueCollection of records to first be deleted from an index. Name/Value pair combination consists of IdColumn and RecordId from each IndexDocument in IndexDocuments. | |
void | Reset () |
Clears the contents of Documents and IndexDocuments | |
void | Optimize () |
Executes a Lucene.Net optimization against the referenced index. | |
bool | ContainsId (int recordId) |
Indicates if a given recordId exists within the configuration definition of TopId and BottomId. | |
Properties | |
int | Id [get] |
Unique identifier for an IndexSet within a configuration of multiple IndexSet objects | |
IndexAction | IndexAction [get] |
Enumeration dictating the type of updates to be applied to the underlying master index | |
AnalyzerType | AnalyzerType [get] |
Enumeration dictating the type of Analyzer to be applied to IndexDocuments in update scenarios | |
Analyzer | Analzyer [get] |
The Analyzer object used in application of IndexDocument updates | |
string | LocalPath [get] |
Filesystem path to the master index | |
string | IdColumn [get] |
String name representing the unique key for the given record in the index | |
int | BottomId [get] |
Minimum IdColumn value for a record in this index | |
int | TopId [get] |
Maximum IdColumn value for a record in this index | |
CurrentIndex | CurrentIndex [get] |
CurrentIndex object associated with this IndexSet. The CurrentIndex is used in determining index settings and maintenance as well as managing physical file updates for index updates. | |
List< string > | FileSystemDocuments [get] |
List of filesystem paths representing files for the master index | |
Hashtable | IndexDocuments [get] |
Pending updates to be applied to the master index | |
Hashtable | Documents [get] |
Retrieves the DeleteIndexDocuments from IndexDocuments | |
Definition of configurable search indexes managed by the LuceneUpdater windows service.
An example configuration would look like the following: <indexsets compoundfile="true" deltadirectory="c:\indexes\indexdocuments"> <indexSet id="1" action="1" analyzer="1"> <add key="localpath" value="c:\lucene\masterindex\index1"> <copy> <targetPath indexa="\\LuceneServer\lucene\indexA\index1" indexb="\\LuceneServer\lucene\indexA\index1"> <statusDir value="\\LuceneServer\lucene\statusfile\"> </copy> <add key="bottomid" value="1"> <add key="topid" value="1000"> <add key="idcolumn" value="pkId"> </indexSet> </indexsets>
Definition at line 54 of file IndexSet.cs.
Lucene.Net.Distributed.Indexing.IndexSet.IndexSet | ( | XmlNode | node | ) |
Public constructor for IndexSet. An IndexSet is defined in XML configuration and is loaded via a custom configuration handler.
node | XmlNode definition for a given IndexSet |
Definition at line 76 of file IndexSet.cs.
bool Lucene.Net.Distributed.Indexing.IndexSet.ContainsId | ( | int | recordId | ) |
Indicates if a given recordId exists within the configuration definition of TopId and BottomId.
recordId |
Definition at line 357 of file IndexSet.cs.
NameValueCollection Lucene.Net.Distributed.Indexing.IndexSet.GetDeletionCollection | ( | ) |
Retrieves a NameValueCollection of records to first be deleted from an index. Name/Value pair combination consists of IdColumn and RecordId from each IndexDocument in IndexDocuments.
Definition at line 320 of file IndexSet.cs.
void Lucene.Net.Distributed.Indexing.IndexSet.Optimize | ( | ) |
Executes a Lucene.Net optimization against the referenced index.
Definition at line 340 of file IndexSet.cs.
void Lucene.Net.Distributed.Indexing.IndexSet.Reset | ( | ) |
Clears the contents of Documents and IndexDocuments
Definition at line 331 of file IndexSet.cs.
|
get |
Enumeration dictating the type of Analyzer to be applied to IndexDocuments in update scenarios
Definition at line 225 of file IndexSet.cs.
|
get |
The Analyzer object used in application of IndexDocument updates
Definition at line 233 of file IndexSet.cs.
|
get |
Minimum IdColumn value for a record in this index
Definition at line 257 of file IndexSet.cs.
|
get |
CurrentIndex object associated with this IndexSet. The CurrentIndex is used in determining index settings and maintenance as well as managing physical file updates for index updates.
Definition at line 275 of file IndexSet.cs.
|
get |
Retrieves the DeleteIndexDocuments from IndexDocuments
Definition at line 299 of file IndexSet.cs.
|
get |
List of filesystem paths representing files for the master index
Definition at line 283 of file IndexSet.cs.
|
get |
Unique identifier for an IndexSet within a configuration of multiple IndexSet objects
Definition at line 209 of file IndexSet.cs.
|
get |
String name representing the unique key for the given record in the index
Definition at line 249 of file IndexSet.cs.
|
get |
Enumeration dictating the type of updates to be applied to the underlying master index
Definition at line 217 of file IndexSet.cs.
|
get |
Pending updates to be applied to the master index
Definition at line 291 of file IndexSet.cs.
|
get |
Filesystem path to the master index
Definition at line 241 of file IndexSet.cs.
|
get |
Maximum IdColumn value for a record in this index
Definition at line 265 of file IndexSet.cs.