|
Carrot2 Framework
API Specification |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.input.lucene.LuceneLocalInputComponentFactory
public class LuceneLocalInputComponentFactory
| Field Summary | |
|---|---|
static AnalyzerFactory |
DEFAULT_ANALYZER_FACTORY
Default Analyzer Factory returns StandardAnalyzerwrapped with PorterStemFilter |
static String[] |
DEFAULT_SEARCH_FIELDS
Default search fields: DEFAULT_TITLE_FIELD, DEFAULT_SUMMARY_FIELD |
static String |
DEFAULT_SUMMARY_FIELD
Default title field name |
static String |
DEFAULT_TITLE_FIELD
Default title field name |
static String |
DEFAULT_URL_FIELD
Default title field name |
| Constructor Summary | |
|---|---|
LuceneLocalInputComponentFactory(org.apache.lucene.search.Searcher searcher)
Creates a Lucene input component factory that produces LuceneLocalInputComponent instances that use the
specified Searcher and default field names and the default analyzer. |
|
LuceneLocalInputComponentFactory(org.apache.lucene.search.Searcher searcher,
LuceneLocalInputComponentFactoryConfig luceneSearchConfig,
AnalyzerFactory analyzerFactory)
Creates a Lucene input component factory that produces LuceneLocalInputComponent instances using the
specified searcher, the specified search configuration (field names) and the specified analyzer. |
|
LuceneLocalInputComponentFactory(String indexDirectory)
CCreates a Lucene input component factory that produces LuceneLocalInputComponent instances that read
index at the specified location with default field names and the default analyzer. |
|
LuceneLocalInputComponentFactory(String indexDirectory,
LuceneLocalInputComponentFactoryConfig luceneSearchConfig,
AnalyzerFactory analyzerFactory)
Creates a Lucene input component factory that produces LuceneLocalInputComponent instances that read
index at the specified location and uses the specified search configuration (field names) and the specified
analyzer. |
|
| Method Summary | |
|---|---|
LocalComponent |
getInstance()
Produces a new instance of a component implementing LocalComponent interface. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_TITLE_FIELD
public static final String DEFAULT_SUMMARY_FIELD
public static final String DEFAULT_URL_FIELD
public static final String[] DEFAULT_SEARCH_FIELDS
DEFAULT_TITLE_FIELD, DEFAULT_SUMMARY_FIELD
public static final AnalyzerFactory DEFAULT_ANALYZER_FACTORY
StandardAnalyzerwrapped with PorterStemFilter
| Constructor Detail |
|---|
public LuceneLocalInputComponentFactory(String indexDirectory)
throws IOException
LuceneLocalInputComponent instances that read
index at the specified location with default field names and the default analyzer.
indexDirectory -
IOExceptionpublic LuceneLocalInputComponentFactory(org.apache.lucene.search.Searcher searcher)
LuceneLocalInputComponent instances that use the
specified Searcher and default field names and the default analyzer.
searcher -
public LuceneLocalInputComponentFactory(String indexDirectory,
LuceneLocalInputComponentFactoryConfig luceneSearchConfig,
AnalyzerFactory analyzerFactory)
throws IOException
LuceneLocalInputComponent instances that read
index at the specified location and uses the specified search configuration (field names) and the specified
analyzer.
IOException
public LuceneLocalInputComponentFactory(org.apache.lucene.search.Searcher searcher,
LuceneLocalInputComponentFactoryConfig luceneSearchConfig,
AnalyzerFactory analyzerFactory)
LuceneLocalInputComponent instances using the
specified searcher, the specified search configuration (field names) and the specified analyzer.
| Method Detail |
|---|
public LocalComponent getInstance()
LocalComponentFactoryLocalComponent interface.
getInstance in interface LocalComponentFactorynull. In case of any error, an unchecked exception
should be thrown.
|
Please refer to project documentation at
http://project.carrot2.org |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||