org.carrot2.source.solr
Class SolrDocumentSourceDescriptor.AttributeBuilder

java.lang.Object
  extended by org.carrot2.source.SearchEngineBaseDescriptor.AttributeBuilder
      extended by org.carrot2.source.SimpleSearchEngineDescriptor.AttributeBuilder
          extended by org.carrot2.source.xml.RemoteXmlSimpleSearchEngineBaseDescriptor.AttributeBuilder
              extended by org.carrot2.source.solr.SolrDocumentSourceDescriptor.AttributeBuilder
Enclosing class:
SolrDocumentSourceDescriptor

public static class SolrDocumentSourceDescriptor.AttributeBuilder
extends RemoteXmlSimpleSearchEngineBaseDescriptor.AttributeBuilder

Attribute map builder for the SolrDocumentSource component. You can use this builder as a type-safe alternative to populating the attribute map using attribute keys.


Field Summary
 Map<String,Object> map
          The attribute map populated by this builder.
 
Constructor Summary
protected SolrDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
          Creates a builder backed by the provided map.
 
Method Summary
 SolrDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(String value)
          Solr service URL base.
 SolrDocumentSourceDescriptor.AttributeBuilder solrSummaryFieldName(String value)
          Summary field name.
 SolrDocumentSourceDescriptor.AttributeBuilder solrTitleFieldName(String value)
          Title field name.
 SolrDocumentSourceDescriptor.AttributeBuilder solrUrlFieldName(String value)
          URL field name.
 
Methods inherited from class org.carrot2.source.xml.RemoteXmlSimpleSearchEngineBaseDescriptor.AttributeBuilder
xmlDocumentSourceHelper
 
Methods inherited from class org.carrot2.source.SearchEngineBaseDescriptor.AttributeBuilder
compressed, documents, query, results, resultsTotal, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

map

public final Map<String,Object> map
The attribute map populated by this builder.

Constructor Detail

SolrDocumentSourceDescriptor.AttributeBuilder

protected SolrDocumentSourceDescriptor.AttributeBuilder(Map<String,Object> map)
Creates a builder backed by the provided map.

Method Detail

serviceUrlBase

public SolrDocumentSourceDescriptor.AttributeBuilder serviceUrlBase(String value)
Solr service URL base.

See Also:
SolrDocumentSource.serviceUrlBase

solrTitleFieldName

public SolrDocumentSourceDescriptor.AttributeBuilder solrTitleFieldName(String value)
Title field name. Name of the Solr field that will provide document titles.

See Also:
SolrDocumentSource.solrTitleFieldName

solrSummaryFieldName

public SolrDocumentSourceDescriptor.AttributeBuilder solrSummaryFieldName(String value)
Summary field name. Name of the Solr field that will provide document summary.

See Also:
SolrDocumentSource.solrSummaryFieldName

solrUrlFieldName

public SolrDocumentSourceDescriptor.AttributeBuilder solrUrlFieldName(String value)
URL field name. Name of the Solr field that will provide document URLs.

See Also:
SolrDocumentSource.solrUrlFieldName


Copyright (c) Dawid Weiss, Stanislaw Osinski