How-to: Index and Search Multilingual Documents in Hadoop

Categories: General Guest Search

Learn how to use Cloudera Search along with RBL-JE to search and index documents in multiple languages.

Our thanks to Basis Technology for providing the how-to below!

Basis Technology’s Rosette Base Linguistics for Java (RBL-JE) provides a comprehensive multilingual text analytics platform for improving search precision and recall. RBL provides tokenization, lemmatization, POS tagging, and de-compounding for Asian, European, Nordic, and Middle Eastern languages, and has just been certified for use with Cloudera Search.

Cloudera Search brings full-text, interactive search, and scalable indexing to Apache Hadoop by marrying SolrCloud with HDFS and Apache HBase, and other projects in CDH. Because it’s integrated with CDH, Cloudera Search brings the same fault tolerance, scale, visibility, and flexibility of your other Hadoop workloads to search, and allows for a number of indexing, access control, and manageability options.

In this post, you’ll learn how to use Cloudera Search and RBL-JE to index and search documents. Since Cloudera takes care of the plumbing for distributed search and indexing, the only work needed to incorporate Basis Technology’s linguistics is loading the software and configuring your Solr collections.

First, install RBL-JE. This essentially involves unpacking a tar.gz file and copying your license file to the licenses directory. Note the root directory of the installation. We’ll refer to this as RBLJE_ROOT later.

Searching and indexing with RBL-JE requires a few additions to the schema.xml and solr.xml files for each Solr collections that you will use. To the solrconfig.xml file, you will add these lines to ensure that the appropriate RBL jar files end up on the class path:


Replace the [[xxx]] text in the pathnames above to match the version of RBL you are using. The version numbers can be determined by looking at the contents your RBLJE_ROOT.

Edit the schema.xml file to add field types that use RBL and assign them to fields in your documents. Here is an example field type that specifies using RBL to analyze Chinese data:



  • bt.license.path is [[RBLJE_ROOT]]/rbl-je-[[RBLJE_VER]]/licenses/rlp-license.xml
  • is [[RBLJE_ROOT]]/rbl-je-[[RBLJE_VER]]/models
  • is [[RBLJE_ROOT]]/rbl-je-[[RBLJE_VER]]/dicts

And here is an example of using it on a field:


That’s it! Once this bit of configuration is done, the Cloudera Search framework can be used conventionally for indexing and searching. You’ll find a repository of configuration files, scripts, and sample documents that you can use to configure and test RBL-JE here. It provides working examples of the configuration techniques discussed above.

Request an evaluation version of RBL-JE from Basis Technology and try it out in your own Cloudera Search application!