public static class SolrDocumentSourceDescriptor.AttributeBuilder extends RemoteXmlSimpleSearchEngineBaseDescriptor.AttributeBuilder
SolrDocumentSource
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 |
---|---|
List<Cluster> |
clusters()
If
SolrDocumentSource.readClusters is true and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain. |
SolrDocumentSourceDescriptor.AttributeBuilder |
clusters(org.carrot2.util.attribute.IObjectFactory<? extends List<Cluster>> value)
If
SolrDocumentSource.readClusters is true and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain. |
SolrDocumentSourceDescriptor.AttributeBuilder |
clusters(List<Cluster> value)
If
SolrDocumentSource.readClusters is true and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain. |
SolrDocumentSourceDescriptor.AttributeBuilder |
copyFields(boolean value)
Copy Solr fields from the search result to Carrot2
Document instances (as fields). |
SolrDocumentSourceDescriptor.AttributeBuilder |
copyFields(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Copy Solr fields from the search result to Carrot2
Document instances (as fields). |
SolrDocumentSourceDescriptor.AttributeBuilder |
readClusters(boolean value)
If clusters are present in the Solr output they will be read and exposed to components
further down the processing chain.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
readClusters(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
If clusters are present in the Solr output they will be read and exposed to components
further down the processing chain.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
serviceUrlBase(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Solr service URL base.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
serviceUrlBase(String value)
Solr service URL base.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrFilterQuery(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Filter query appended to
SolrDocumentSource.serviceUrlBase . |
SolrDocumentSourceDescriptor.AttributeBuilder |
solrFilterQuery(String value)
Filter query appended to
SolrDocumentSource.serviceUrlBase . |
SolrDocumentSourceDescriptor.AttributeBuilder |
solrIdFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Document identifier field name (specified in Solr schema).
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrIdFieldName(String value)
Document identifier field name (specified in Solr schema).
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrSummaryFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Summary field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrSummaryFieldName(String value)
Summary field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrTitleFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
Title field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrTitleFieldName(String value)
Title field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrUrlFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
URL field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrUrlFieldName(String value)
URL field name.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrXsltAdapter(Class<?> clazz)
Provides a custom XSLT stylesheet for converting from Solr's output to
an XML format
parsed by Carrot2.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrXsltAdapter(org.carrot2.util.attribute.IObjectFactory<? extends IResource> value)
Provides a custom XSLT stylesheet for converting from Solr's output to
an XML format
parsed by Carrot2.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
solrXsltAdapter(IResource value)
Provides a custom XSLT stylesheet for converting from Solr's output to
an XML format
parsed by Carrot2.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
useHighlighterOutput(boolean value)
If highlighter fragments are present in the Solr output they will be used (and preferred) over full
field content.
|
SolrDocumentSourceDescriptor.AttributeBuilder |
useHighlighterOutput(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
If highlighter fragments are present in the Solr output they will be used (and preferred) over full
field content.
|
redirectStrategy, redirectStrategy, xmlDocumentSourceHelper
compressed, documents, query, query, results, results, resultsTotal, start, start
public SolrDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(String value)
SolrDocumentSource.serviceUrlBase
public SolrDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.serviceUrlBase
public SolrDocumentSourceDescriptor.AttributeBuilder solrFilterQuery(String value)
SolrDocumentSource.serviceUrlBase
.SolrDocumentSource.solrFilterQuery
public SolrDocumentSourceDescriptor.AttributeBuilder solrFilterQuery(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.serviceUrlBase
.SolrDocumentSource.solrFilterQuery
public SolrDocumentSourceDescriptor.AttributeBuilder solrTitleFieldName(String value)
SolrDocumentSource.solrTitleFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrTitleFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.solrTitleFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrSummaryFieldName(String value)
SolrDocumentSource.solrSummaryFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrSummaryFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.solrSummaryFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrUrlFieldName(String value)
SolrDocumentSource.solrUrlFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrUrlFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.solrUrlFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrIdFieldName(String value)
SolrDocumentSource.solrIdFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrIdFieldName(org.carrot2.util.attribute.IObjectFactory<? extends String> value)
SolrDocumentSource.solrIdFieldName
public SolrDocumentSourceDescriptor.AttributeBuilder solrXsltAdapter(IResource value)
SolrDocumentSource.solrXsltAdapter
public SolrDocumentSourceDescriptor.AttributeBuilder solrXsltAdapter(Class<?> clazz)
SolrDocumentSource.solrXsltAdapter
public SolrDocumentSourceDescriptor.AttributeBuilder solrXsltAdapter(org.carrot2.util.attribute.IObjectFactory<? extends IResource> value)
SolrDocumentSource.solrXsltAdapter
public SolrDocumentSourceDescriptor.AttributeBuilder readClusters(boolean value)
SolrDocumentSource.solrIdFieldName
is required to match
document references.SolrDocumentSource.readClusters
public SolrDocumentSourceDescriptor.AttributeBuilder readClusters(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
SolrDocumentSource.solrIdFieldName
is required to match
document references.SolrDocumentSource.readClusters
public SolrDocumentSourceDescriptor.AttributeBuilder useHighlighterOutput(boolean value)
Setting this option to false
will disable using the highlighter output
entirely.
SolrDocumentSource.useHighlighterOutput
public SolrDocumentSourceDescriptor.AttributeBuilder useHighlighterOutput(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Setting this option to false
will disable using the highlighter output
entirely.
SolrDocumentSource.useHighlighterOutput
public SolrDocumentSourceDescriptor.AttributeBuilder copyFields(boolean value)
Document
instances (as fields).SolrDocumentSource.copyFields
public SolrDocumentSourceDescriptor.AttributeBuilder copyFields(org.carrot2.util.attribute.IObjectFactory<? extends Boolean> value)
Document
instances (as fields).SolrDocumentSource.copyFields
public SolrDocumentSourceDescriptor.AttributeBuilder clusters(List<Cluster> value)
SolrDocumentSource.readClusters
is true
and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain.SolrDocumentSource.clusters
public SolrDocumentSourceDescriptor.AttributeBuilder clusters(org.carrot2.util.attribute.IObjectFactory<? extends List<Cluster>> value)
SolrDocumentSource.readClusters
is true
and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain.SolrDocumentSource.clusters
public List<Cluster> clusters()
SolrDocumentSource.readClusters
is true
and clusters are present in the input
XML, they will be deserialized and exposed to components further down the processing
chain.SolrDocumentSource.clusters