Implementing a text tagger using Solr

Let us see how we can implement the Solr text tagger. Let us get the latest code for the Solr text tagger from the GitHub repository by cloning the Git repository with the following command:

git clone https://github.com/OpenSextant/SolrTextTagger.git

This will get the code inside a folder called SolrTextTagger.

Now inside the SolrTextTagger library, run the following command to create the JAR file:

mvn package

Note

The mvn command is available in the Maven repository. This repository can be installed using the following command on Ubuntu machines:

sudo apt-get install maven2

We can also install and use the latest release of maven – maven3.

The mvn command fetches the dependencies required for compiling and creating ...

Get Apache Solr Search Patterns now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.