|
Carrot2 v3.6.0-SNAPSHOT
API Documentation |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.carrot2.source.lucene.LuceneDocumentSourceDescriptor.AttributeBuilder
public static class LuceneDocumentSourceDescriptor.AttributeBuilder
Attribute map builder for the LuceneDocumentSource component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.
| Field Summary | |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder. |
| Constructor Summary | |
|---|---|
protected |
LuceneDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
LuceneDocumentSourceDescriptor.AttributeBuilder |
analyzer(org.apache.lucene.analysis.Analyzer value)
Analyzer used at indexing time. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
analyzer(Class<? extends org.apache.lucene.analysis.Analyzer> clazz)
Analyzer used at indexing time. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
directory(Class<? extends org.apache.lucene.store.Directory> clazz)
Search index Directory. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
directory(org.apache.lucene.store.Directory value)
Search index Directory. |
Collection<Document> |
documents()
|
LuceneDocumentSourceDescriptor.AttributeBuilder |
fieldMapper(Class<? extends IFieldMapper> clazz)
IFieldMapper provides the link between Carrot2
Document fields and Lucene index fields. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
fieldMapper(IFieldMapper value)
IFieldMapper provides the link between Carrot2
Document fields and Lucene index fields. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
keepLuceneDocuments(boolean value)
Keeps references to Lucene document instances in Carrot2 documents. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
query(Object value)
A pre-parsed Query object or a String
parsed using the built-in QueryParser over a
set of search fields returned from the LuceneDocumentSource.fieldMapper. |
LuceneDocumentSourceDescriptor.AttributeBuilder |
results(int value)
|
long |
resultsTotal()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public final Map<String,Object> map
| Constructor Detail |
|---|
protected LuceneDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public LuceneDocumentSourceDescriptor.AttributeBuilder results(int value)
LuceneDocumentSource.resultspublic long resultsTotal()
LuceneDocumentSource.resultsTotalpublic Collection<Document> documents()
LuceneDocumentSource.documentspublic LuceneDocumentSourceDescriptor.AttributeBuilder directory(org.apache.lucene.store.Directory value)
Directory. Must be unlocked for
reading.
LuceneDocumentSource.directorypublic LuceneDocumentSourceDescriptor.AttributeBuilder directory(Class<? extends org.apache.lucene.store.Directory> clazz)
Directory. Must be unlocked for
reading.
LuceneDocumentSource.directorypublic LuceneDocumentSourceDescriptor.AttributeBuilder analyzer(org.apache.lucene.analysis.Analyzer value)
Analyzer used at indexing time. The same
analyzer should be used for querying.
LuceneDocumentSource.analyzerpublic LuceneDocumentSourceDescriptor.AttributeBuilder analyzer(Class<? extends org.apache.lucene.analysis.Analyzer> clazz)
Analyzer used at indexing time. The same
analyzer should be used for querying.
LuceneDocumentSource.analyzerpublic LuceneDocumentSourceDescriptor.AttributeBuilder fieldMapper(IFieldMapper value)
IFieldMapper provides the link between Carrot2
Document fields and Lucene index fields.
LuceneDocumentSource.fieldMapperpublic LuceneDocumentSourceDescriptor.AttributeBuilder fieldMapper(Class<? extends IFieldMapper> clazz)
IFieldMapper provides the link between Carrot2
Document fields and Lucene index fields.
LuceneDocumentSource.fieldMapperpublic LuceneDocumentSourceDescriptor.AttributeBuilder query(Object value)
Query object or a String
parsed using the built-in QueryParser over a
set of search fields returned from the LuceneDocumentSource.fieldMapper.
LuceneDocumentSource.querypublic LuceneDocumentSourceDescriptor.AttributeBuilder keepLuceneDocuments(boolean value)
IFieldMapper that will store those fields as regular
Carrot2 fields.Controller
configured to cache the
output from LuceneDocumentSource.
LuceneDocumentSource.keepLuceneDocuments
|
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 | ||||||||