public static class GoogleDocumentSourceDescriptor.AttributeBuilder extends MultipageSearchEngineDescriptor.AttributeBuilder
GoogleDocumentSource component. You can use this
builder as a type-safe alternative to populating the attribute map using attribute keys.| Modifier and Type | Field and Description |
|---|---|
Map<String,Object> |
map
The attribute map populated by this builder.
|
| Modifier | Constructor and Description |
|---|---|
protected |
GoogleDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
GoogleDocumentSourceDescriptor.AttributeBuilder |
keepHighlights(boolean value)
Keep query word highlighting.
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
keepHighlights(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Keep query word highlighting.
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(HttpRedirectStrategy value)
HTTP redirect response strategy (follow or throw an error).
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
HTTP redirect response strategy (follow or throw an error).
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
referer(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Request referrer.
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
referer(String value)
Request referrer.
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
serviceUrl(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Service URL.
|
GoogleDocumentSourceDescriptor.AttributeBuilder |
serviceUrl(String value)
Service URL.
|
searchMode, searchModecompressed, documents, query, query, results, results, resultsTotal, start, startpublic GoogleDocumentSourceDescriptor.AttributeBuilder serviceUrl(String value)
GoogleDocumentSource.serviceUrlpublic GoogleDocumentSourceDescriptor.AttributeBuilder serviceUrl(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
GoogleDocumentSource.serviceUrlpublic GoogleDocumentSourceDescriptor.AttributeBuilder referer(String value)
GoogleDocumentSource.refererpublic GoogleDocumentSourceDescriptor.AttributeBuilder referer(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
GoogleDocumentSource.refererpublic GoogleDocumentSourceDescriptor.AttributeBuilder keepHighlights(boolean value)
true to keep these
highlights.GoogleDocumentSource.keepHighlightspublic GoogleDocumentSourceDescriptor.AttributeBuilder keepHighlights(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
true to keep these
highlights.GoogleDocumentSource.keepHighlightspublic GoogleDocumentSourceDescriptor.AttributeBuilder redirectStrategy(HttpRedirectStrategy value)
public GoogleDocumentSourceDescriptor.AttributeBuilder redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)