public static class Bing7DocumentSourceDescriptor.AttributeBuilder extends MultipageSearchEngineDescriptor.AttributeBuilder
Bing7DocumentSource
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 |
---|---|
Bing7DocumentSourceDescriptor.AttributeBuilder |
adult(AdultOption value)
Adult search restriction (porn filter).
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
adult(org.carrot2.util.attribute.IObjectFactory<? extends AdultOption> value)
Adult search restriction (porn filter).
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
apiKey(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
The API key used to authenticate requests.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
apiKey(String value)
The API key used to authenticate requests.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
market(org.carrot2.util.attribute.IObjectFactory<? extends MarketOption> value)
Language and country/region information for the request.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
market(MarketOption value)
Language and country/region information for the request.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(HttpRedirectStrategy value)
HTTP redirect response strategy (follow or throw an error).
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
HTTP redirect response strategy (follow or throw an error).
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
respectRateLimits(boolean value)
Respect official guidelines concerning rate limits.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
respectRateLimits(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Respect official guidelines concerning rate limits.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Site restriction to return value under a given URL.
|
Bing7DocumentSourceDescriptor.AttributeBuilder |
site(String value)
Site restriction to return value under a given URL.
|
searchMode, searchMode
compressed, documents, query, query, results, results, resultsTotal, start, start
public Bing7DocumentSourceDescriptor.AttributeBuilder apiKey(String value)
By default takes the system property's value under key: bing7.key
.
Bing7DocumentSource.apiKey
public Bing7DocumentSourceDescriptor.AttributeBuilder apiKey(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
By default takes the system property's value under key: bing7.key
.
Bing7DocumentSource.apiKey
public Bing7DocumentSourceDescriptor.AttributeBuilder site(String value)
Bing7DocumentSource.site
public Bing7DocumentSourceDescriptor.AttributeBuilder site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Bing7DocumentSource.site
public Bing7DocumentSourceDescriptor.AttributeBuilder market(MarketOption value)
Bing7DocumentSource.market
public Bing7DocumentSourceDescriptor.AttributeBuilder market(org.carrot2.util.attribute.IObjectFactory<? extends MarketOption> value)
Bing7DocumentSource.market
public Bing7DocumentSourceDescriptor.AttributeBuilder adult(AdultOption value)
Bing7DocumentSource.adult
public Bing7DocumentSourceDescriptor.AttributeBuilder adult(org.carrot2.util.attribute.IObjectFactory<? extends AdultOption> value)
Bing7DocumentSource.adult
public Bing7DocumentSourceDescriptor.AttributeBuilder redirectStrategy(HttpRedirectStrategy value)
Bing7DocumentSource.redirectStrategy
public Bing7DocumentSourceDescriptor.AttributeBuilder redirectStrategy(org.carrot2.util.attribute.IObjectFactory<? extends HttpRedirectStrategy> value)
Bing7DocumentSource.redirectStrategy
public Bing7DocumentSourceDescriptor.AttributeBuilder respectRateLimits(boolean value)
Bing7DocumentSource.respectRateLimits
public Bing7DocumentSourceDescriptor.AttributeBuilder respectRateLimits(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Bing7DocumentSource.respectRateLimits