Skip to content

Instantly share code, notes, and snippets.

@rom3r4
Last active August 29, 2015 14:05
Show Gist options
  • Save rom3r4/9863c8fe1f7704356920 to your computer and use it in GitHub Desktop.
Save rom3r4/9863c8fe1f7704356920 to your computer and use it in GitHub Desktop.
Integration of Tomcat7 + JDK7 + Solr4 + Carrot2 - .XML files.
<component-suite>
<!--
<sources>
-->
<!-- Webapp-specific document source (prefetching from Google) -->
<!--
<source component-class="org.carrot2.webapp.source.WebDocumentSource" id="web">
<label>Web</label>
<title>Search the Web with etools.ch</title>
<description>Searches the web using the etools.ch meta search
engine</description>
<mnemonic>W</mnemonic>
<example-queries>
<example-query>data mining</example-query>
<example-query>london</example-query>
<example-query>clustering</example-query>
</example-queries>
</source>
</sources>
-->
<components>
<component component-class="org.carrot2.webapp.filter.QueryWordHighlighter"
id="org.carrot2.webapp.filter.QueryWordHighlighter"
attribute-sets-resource="component-query-highlighter-attributes.xml">
<label>Query Highlighter</label>
<title>Webapp in-document Query Highlighter component</title>
</component>
</components>
<include suite="source-solr.xml" />
<!-- Search engines. -->
<!--
<include suite="source-bing.xml" />
<include suite="source-wiki.xml" />
-->
<!-- PubMed, Indeed job search. -->
<!--
<include suite="source-indeed.xml" />
<include suite="source-pubmed.xml" />
<include suite="source-put.xml" />
-->
<!-- Algorithms -->
<include suite="algorithm-stc.xml" />
<include suite="algorithm-lingo.xml" />
<include suite="algorithm-kmeans.xml" />
<include suite="algorithm-synthetic.xml" />
</component-suite>
@rom3r4
Copy link
Author

rom3r4 commented Aug 27, 2014

cat /var/lib/tomcat7/webapps/carrot2/WEB-INF/suites/suite-webapp.xml

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