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
| Improve this Doc View SourceLuceneSearchProvider(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 |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
Lucene.Net.Analysis.Analyzer | analyzer | Analyzer. |
System.Boolean | autoSync | Whether to keep the search provider in sync with the index. |
Remarks
Uses the DefaultIndexSchema as the 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 |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
Lucene.Net.Analysis.Analyzer | analyzer | Analyzer. |
IFullTextIndexSchema | schema | Index Schema. |
System.Boolean | autoSync | Whether to keep the search provider in sync with the index. |
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 |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
Lucene.Net.Analysis.Analyzer | analyzer | Analyzer. |
IFullTextIndexSchema | schema | Index Schema. |
LuceneSearchProvider(LuceneVersion, Directory, Analyzer)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
Lucene.Net.Analysis.Analyzer | analyzer | Analyzer. |
Remarks
Uses the DefaultIndexSchema as the schema.
LuceneSearchProvider(LuceneVersion, Directory, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
System.Boolean | 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, bool)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir, IFullTextIndexSchema schema, bool autoSync)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
IFullTextIndexSchema | schema | Index Schema. |
System.Boolean | autoSync | Whether to keep the search provider in sync with the index. |
Remarks
Uses 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 |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
IFullTextIndexSchema | schema | Index Schema. |
Remarks
Uses the StandardAnalyzer as the analyzer.
LuceneSearchProvider(LuceneVersion, Directory)
Creates a new Lucene Search Provider.
Declaration
public LuceneSearchProvider(LuceneVersion ver, Directory indexDir)
Parameters
Type | Name | Description |
---|---|---|
Lucene.Net.Util.LuceneVersion | ver | Version. |
Lucene.Net.Store.Directory | indexDir | Directory. |
Remarks
Uses the DefaultIndexSchema as the schema and the StandardAnalyzer as the analyzer.