Class LuceneSearchProvider
A Full Text Search provider using Lucene.Net.
Inherited Members
Namespace: VDS.RDF.Query.FullText.Search.Lucene
Assembly: dotNetRdf.Query.FullText.dll
Syntax
public class LuceneSearchProvider : BaseLuceneSearchProvider, IFullTextSearchProvider, IDisposable, IConfigurationSerializable
Constructors
| Edit this page View SourceLuceneSearchProvider(LuceneVersion, Directory)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
Remarks
Uses the DefaultIndexSchema as the schema and the StandardAnalyzer as the analyzer.
LuceneSearchProvider(LuceneVersion, Directory, Analyzer)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
Analyzer | analyzer | Analyzer. |
Remarks
Uses the DefaultIndexSchema as the schema.
LuceneSearchProvider(LuceneVersion, Directory, Analyzer, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, Analyzer analyzer, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
Analyzer | analyzer | Analyzer. |
bool | autoSync | Whether to keep the search provider in sync with the index. |
Remarks
Uses the DefaultIndexSchema as the schema.
LuceneSearchProvider(LuceneVersion, Directory, Analyzer, IFullTextIndexSchema)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, Analyzer analyzer, IFullTextIndexSchema schema)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
Analyzer | analyzer | Analyzer. |
IFullTextIndexSchema | schema | Index Schema. |
LuceneSearchProvider(LuceneVersion, Directory, Analyzer, IFullTextIndexSchema, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, Analyzer analyzer, IFullTextIndexSchema schema, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
Analyzer | analyzer | Analyzer. |
IFullTextIndexSchema | schema | Index Schema. |
bool | autoSync | Whether to keep the search provider in sync with the index. |
LuceneSearchProvider(LuceneVersion, Directory, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
bool | autoSync | Whether to jeep the search provider in sync with the index. |
Remarks
Uses the DefaultIndexSchema as the schema and the StandardAnalyzer as the analyzer.
LuceneSearchProvider(LuceneVersion, Directory, IFullTextIndexSchema)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, IFullTextIndexSchema schema)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
IFullTextIndexSchema | schema | Index Schema. |
Remarks
Uses the StandardAnalyzer as the analyzer.
LuceneSearchProvider(LuceneVersion, Directory, IFullTextIndexSchema, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, IFullTextIndexSchema schema, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | ver | Version. |
Directory | indexDir | Directory. |
IFullTextIndexSchema | schema | Index Schema. |
bool | autoSync | Whether to keep the search provider in sync with the index. |
Remarks
Uses the StandardAnalyzer as the analyzer.