C# Class Lucene.Services.LuceneIndexProvider

Represents the default implementation of an IIndexProvider, based on Lucene
Inheritance: IIndexProvider
Datei anzeigen Open project: ucdavis/Orchard

Public Properties

Property Type Description
DefaultMinDateTime System.DateTime
LuceneVersion Lucene.Net.Util.Version

Public Methods

Method Description
CreateAnalyzer ( ) : Analyzer
CreateIndex ( string indexName ) : void
CreateSearchBuilder ( string indexName ) : ISearchBuilder
Delete ( string indexName, IEnumerable documentIds ) : void
Delete ( string indexName, int documentId ) : void
DeleteIndex ( string indexName ) : void
Exists ( string indexName ) : bool
GetFields ( string indexName ) : IEnumerable
IsEmpty ( string indexName ) : bool
LuceneIndexProvider ( IAppDataFolder appDataFolder, ShellSettings shellSettings ) : System
New ( int documentId ) : IDocumentIndex
NumDocs ( string indexName ) : int
Store ( string indexName, IDocumentIndex indexDocument ) : void
Store ( string indexName, IEnumerable indexDocuments ) : void
Store ( string indexName, IEnumerable indexDocuments ) : void

Protected Methods

Method Description
GetDirectory ( string indexName ) : Lucene.Net.Store.Directory

Private Methods

Method Description
CreateDocument ( Lucene.Models.LuceneDocumentIndex indexDocument ) : Lucene.Net.Documents.Document
EnsureDirectoryExists ( ) : void

Method Details

CreateAnalyzer() public static method

public static CreateAnalyzer ( ) : Analyzer
return Lucene.Net.Analysis.Analyzer

CreateIndex() public method

public CreateIndex ( string indexName ) : void
indexName string
return void

CreateSearchBuilder() public method

public CreateSearchBuilder ( string indexName ) : ISearchBuilder
indexName string
return ISearchBuilder

Delete() public method

public Delete ( string indexName, IEnumerable documentIds ) : void
indexName string
documentIds IEnumerable
return void

Delete() public method

public Delete ( string indexName, int documentId ) : void
indexName string
documentId int
return void

DeleteIndex() public method

public DeleteIndex ( string indexName ) : void
indexName string
return void

Exists() public method

public Exists ( string indexName ) : bool
indexName string
return bool

GetDirectory() protected method

protected GetDirectory ( string indexName ) : Lucene.Net.Store.Directory
indexName string
return Lucene.Net.Store.Directory

GetFields() public method

public GetFields ( string indexName ) : IEnumerable
indexName string
return IEnumerable

IsEmpty() public method

public IsEmpty ( string indexName ) : bool
indexName string
return bool

LuceneIndexProvider() public method

public LuceneIndexProvider ( IAppDataFolder appDataFolder, ShellSettings shellSettings ) : System
appDataFolder IAppDataFolder
shellSettings Orchard.Environment.Configuration.ShellSettings
return System

New() public method

public New ( int documentId ) : IDocumentIndex
documentId int
return IDocumentIndex

NumDocs() public method

public NumDocs ( string indexName ) : int
indexName string
return int

Store() public method

public Store ( string indexName, IDocumentIndex indexDocument ) : void
indexName string
indexDocument IDocumentIndex
return void

Store() public method

public Store ( string indexName, IEnumerable indexDocuments ) : void
indexName string
indexDocuments IEnumerable
return void

Store() public method

public Store ( string indexName, IEnumerable indexDocuments ) : void
indexName string
indexDocuments IEnumerable
return void

Property Details

DefaultMinDateTime public_oe static_oe property

public static DateTime,System DefaultMinDateTime
return System.DateTime

LuceneVersion public_oe static_oe property

public static Lucene.Net.Util.Version LuceneVersion
return Lucene.Net.Util.Version