public static class Bing5DocumentSourceDescriptor.AttributeBuilder extends MultipageSearchEngineDescriptor.AttributeBuilder
Bing5DocumentSource 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 |
AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
Bing5DocumentSourceDescriptor.AttributeBuilder |
adult(AdultOption value)
Adult search restriction (porn filter).
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
adult(org.carrot2.util.attribute.IObjectFactory<? extends AdultOption> value)
Adult search restriction (porn filter).
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
apiKey(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
The API key used to authenticate requests.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
apiKey(String value)
The API key used to authenticate requests.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
market(org.carrot2.util.attribute.IObjectFactory<? extends MarketOption> value)
Language and country/region information for the request.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
market(MarketOption value)
Language and country/region information for the request.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(HttpRedirectStrategy value)
HTTP redirect response strategy (follow or throw an error).
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
HTTP redirect response strategy (follow or throw an error).
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
respectRateLimits(boolean value)
Respect official guidelines concerning rate limits.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
respectRateLimits(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Respect official guidelines concerning rate limits.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Site restriction to return value under a given URL.
|
Bing5DocumentSourceDescriptor.AttributeBuilder |
site(String value)
Site restriction to return value under a given URL.
|
searchMode, searchModecompressed, documents, query, query, results, results, resultsTotal, start, startpublic Bing5DocumentSourceDescriptor.AttributeBuilder apiKey(String value)
By default takes the system property's value under key: bing5.key.
Bing5DocumentSource.apiKeypublic Bing5DocumentSourceDescriptor.AttributeBuilder apiKey(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
By default takes the system property's value under key: bing5.key.
Bing5DocumentSource.apiKeypublic Bing5DocumentSourceDescriptor.AttributeBuilder site(String value)
Bing5DocumentSource.sitepublic Bing5DocumentSourceDescriptor.AttributeBuilder site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Bing5DocumentSource.sitepublic Bing5DocumentSourceDescriptor.AttributeBuilder market(MarketOption value)
Bing5DocumentSource.marketpublic Bing5DocumentSourceDescriptor.AttributeBuilder market(org.carrot2.util.attribute.IObjectFactory<? extends MarketOption> value)
Bing5DocumentSource.marketpublic Bing5DocumentSourceDescriptor.AttributeBuilder adult(AdultOption value)
Bing5DocumentSource.adultpublic Bing5DocumentSourceDescriptor.AttributeBuilder adult(org.carrot2.util.attribute.IObjectFactory<? extends AdultOption> value)
Bing5DocumentSource.adultpublic Bing5DocumentSourceDescriptor.AttributeBuilder redirectStrategy(HttpRedirectStrategy value)
Bing5DocumentSource.redirectStrategypublic Bing5DocumentSourceDescriptor.AttributeBuilder redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
Bing5DocumentSource.redirectStrategypublic Bing5DocumentSourceDescriptor.AttributeBuilder respectRateLimits(boolean value)
Bing5DocumentSource.respectRateLimitspublic Bing5DocumentSourceDescriptor.AttributeBuilder respectRateLimits(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Bing5DocumentSource.respectRateLimits