Skip to content

Instantly share code, notes, and snippets.

@rom3r4
Last active August 29, 2015 14:05
Show Gist options
  • Save rom3r4/3b74ecf95568b5f2fabc to your computer and use it in GitHub Desktop.
Save rom3r4/3b74ecf95568b5f2fabc to your computer and use it in GitHub Desktop.
Integration of Tomcat7 + JDK7 + Solr4 + Carrot2 - .XML files.
<attribute-sets default="overridden-attributes">
<attribute-set id="overridden-attributes">
<value-set>
<label>overridden-attributes</label>
<!--
Below are some attributes of this component you can change. Please see
http://download.carrot2.org/head/manual/#section.customizing.component-suites-and-attributes.component-attributes
for tools that will help you to edit this file.
-->
<attribute key="SolrDocumentSource.serviceUrlBase">
<value type="java.lang.String" value="http://localhost:8983/solr/clustering"/>
</attribute>
<attribute key="SolrDocumentSource.solrSummaryFieldName">
<value type="java.lang.String" value="teaser"/>
</attribute>
<attribute key="SolrDocumentSource.solrTitleFieldName">
<value type="java.lang.String" value="label"/>
</attribute>
<attribute key="SolrDocumentSource.solrUrlFieldName">
<value type="java.lang.String" value="url"/>
</attribute>
<!-- Proxy clusters from Solr. Link on 'name' field. -->
<attribute key="SolrDocumentSource.solrIdFieldName">
<value type="java.lang.String" value="id"/>
</attribute>
<attribute key="SolrDocumentSource.readClusters">
<value value="true"/>
</attribute>
</value-set>
</attribute-set>
</attribute-sets>
@rom3r4
Copy link
Author

rom3r4 commented Aug 27, 2014

cat /var/lib/tomcat7/webapps/carrot2/WEB-INF/suites/source-solr-attributes.xml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment