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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.