public static class EToolsDocumentSourceDescriptor.AttributeBuilder extends RemoteXmlSimpleSearchEngineBaseDescriptor.AttributeBuilder
EToolsDocumentSource 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 |
EToolsDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.
|
| Modifier and Type | Method and Description |
|---|---|
EToolsDocumentSourceDescriptor.AttributeBuilder |
country(EToolsDocumentSource.Country value)
Determines the country of origin for the returned search results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
country(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.Country> value)
Determines the country of origin for the returned search results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
customerId(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
eTools customer identifier.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
customerId(String value)
eTools customer identifier.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
dataSources(EToolsDocumentSource.DataSources value)
Determines which data sources to search.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
dataSources(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.DataSources> value)
Determines which data sources to search.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
language(EToolsDocumentSource.Language value)
Determines the language of the returned search results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
language(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.Language> value)
Determines the language of the returned search results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
partnerId(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
eTools partner identifier.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
partnerId(String value)
eTools partner identifier.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
safeSearch(boolean value)
If enabled, excludes offensive content from the results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
safeSearch(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
If enabled, excludes offensive content from the results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
serviceUrlBase(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Base URL for the eTools service
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
serviceUrlBase(String value)
Base URL for the eTools service
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Site URL or comma-separated list of site site URLs to which the returned results
should be restricted.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
site(String value)
Site URL or comma-separated list of site site URLs to which the returned results
should be restricted.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
timeout(int value)
Maximum time in milliseconds to wait for all data sources to return results.
|
EToolsDocumentSourceDescriptor.AttributeBuilder |
timeout(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
Maximum time in milliseconds to wait for all data sources to return results.
|
redirectStrategy, redirectStrategy, xmlDocumentSourceHelpercompressed, documents, query, query, results, results, resultsTotal, start, startpublic EToolsDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(String value)
EToolsDocumentSource.serviceUrlBasepublic EToolsDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
EToolsDocumentSource.serviceUrlBasepublic EToolsDocumentSourceDescriptor.AttributeBuilder country(EToolsDocumentSource.Country value)
EToolsDocumentSource.countrypublic EToolsDocumentSourceDescriptor.AttributeBuilder country(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.Country> value)
EToolsDocumentSource.countrypublic EToolsDocumentSourceDescriptor.AttributeBuilder language(EToolsDocumentSource.Language value)
EToolsDocumentSource.languagepublic EToolsDocumentSourceDescriptor.AttributeBuilder language(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.Language> value)
EToolsDocumentSource.languagepublic EToolsDocumentSourceDescriptor.AttributeBuilder timeout(int value)
EToolsDocumentSource.timeoutpublic EToolsDocumentSourceDescriptor.AttributeBuilder timeout(org.carrot2.util.attribute.IObjectFactory<? extends Integer> value)
EToolsDocumentSource.timeoutpublic EToolsDocumentSourceDescriptor.AttributeBuilder dataSources(EToolsDocumentSource.DataSources value)
EToolsDocumentSource.dataSourcespublic EToolsDocumentSourceDescriptor.AttributeBuilder dataSources(org.carrot2.util.attribute.IObjectFactory<? extends EToolsDocumentSource.DataSources> value)
EToolsDocumentSource.dataSourcespublic EToolsDocumentSourceDescriptor.AttributeBuilder safeSearch(boolean value)
EToolsDocumentSource.safeSearchpublic EToolsDocumentSourceDescriptor.AttributeBuilder safeSearch(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
EToolsDocumentSource.safeSearchpublic EToolsDocumentSourceDescriptor.AttributeBuilder site(String value)
EToolsDocumentSource.sitepublic EToolsDocumentSourceDescriptor.AttributeBuilder site(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
EToolsDocumentSource.sitepublic EToolsDocumentSourceDescriptor.AttributeBuilder partnerId(String value)
EToolsDocumentSource.partnerIdpublic EToolsDocumentSourceDescriptor.AttributeBuilder partnerId(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
EToolsDocumentSource.partnerIdpublic EToolsDocumentSourceDescriptor.AttributeBuilder customerId(String value)
contact@comcepta.com to obtain your customer identifier.EToolsDocumentSource.customerIdpublic EToolsDocumentSourceDescriptor.AttributeBuilder customerId(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
contact@comcepta.com to obtain your customer identifier.EToolsDocumentSource.customerId