|
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.SimpleFieldMapperDescriptor.AttributeBuilder
public static class SimpleFieldMapperDescriptor.AttributeBuilder
Attribute map builder for the SimpleFieldMapper 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 |
SimpleFieldMapperDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map. |
| Method Summary | |
|---|---|
SimpleFieldMapperDescriptor.AttributeBuilder |
contentField(String value)
Document content field name. |
SimpleFieldMapperDescriptor.AttributeBuilder |
contextFragments(int value)
Number of context fragments for the highlighter. |
SimpleFieldMapperDescriptor.AttributeBuilder |
formatter(Class<? extends org.apache.lucene.search.highlight.Formatter> clazz)
Snippet formatter for the highlighter. |
SimpleFieldMapperDescriptor.AttributeBuilder |
formatter(org.apache.lucene.search.highlight.Formatter value)
Snippet formatter for the highlighter. |
SimpleFieldMapperDescriptor.AttributeBuilder |
fragmentJoin(String value)
A string used to join context fragments when highlighting. |
SimpleFieldMapperDescriptor.AttributeBuilder |
searchFields(List<String> value)
Index search field names. |
SimpleFieldMapperDescriptor.AttributeBuilder |
titleField(String value)
Document title field name. |
SimpleFieldMapperDescriptor.AttributeBuilder |
urlField(String value)
Document URL field name. |
| 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 SimpleFieldMapperDescriptor.AttributeBuilder(Map<String,Object> map)
| Method Detail |
|---|
public SimpleFieldMapperDescriptor.AttributeBuilder titleField(String value)
SimpleFieldMapper.titleFieldpublic SimpleFieldMapperDescriptor.AttributeBuilder contentField(String value)
SimpleFieldMapper.contentFieldpublic SimpleFieldMapperDescriptor.AttributeBuilder urlField(String value)
SimpleFieldMapper.urlFieldpublic SimpleFieldMapperDescriptor.AttributeBuilder searchFields(List<String> value)
SimpleFieldMapper.searchFieldspublic SimpleFieldMapperDescriptor.AttributeBuilder formatter(org.apache.lucene.search.highlight.Formatter value)
null
.
SimpleFieldMapper.formatterpublic SimpleFieldMapperDescriptor.AttributeBuilder formatter(Class<? extends org.apache.lucene.search.highlight.Formatter> clazz)
null
.
SimpleFieldMapper.formatterpublic SimpleFieldMapperDescriptor.AttributeBuilder contextFragments(int value)
SimpleFieldMapper.contextFragmentspublic SimpleFieldMapperDescriptor.AttributeBuilder fragmentJoin(String value)
SimpleFieldMapper.fragmentJoin
|
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 | ||||||||