翻译或纠错本页面
  • 文本索引 >
  • 使用基本技术Rosette语义平台的文本索引

使用基本技术Rosette语义平台的文本索引

企业功能

只在MongoDB企业版中提供。

概述

3.2 新版功能.

除了MongoDB文本检索中支持的语言,MongoDB企业版提供了下列其它语言的支持:Arabic, Farsi (具体为Dari 和 Iranian Persian 方言), Urdu, 简体中文以及繁体中文。

为了支持对这些6中其它语言的支持,MongoDB企业版集成了基础技术Rosette 语义平台(RLP)根据语言来进行正规化、分词、断句、词干和分词。

Red Hat 企业版 Linux 6.x 上的MongoDB企业版支持 RLP SDK 7.11.1。了解其它平台上支持语言的更多信息,联系您的销售代表。

预先准备

在MongoDB中使用RLP,MongoDB需要一个RLP基础语义组件的许可证,用于上面指定的一种或多种语言。MongoDB不需要上面列举的所有六种语言的许可证。

对任意一种指定语言的支持依赖于有一个针对该语言有效的RLP许可证。例如,如果只有一个为阿拉伯语提供的RLP许可证,那么MongoDB将会提供对阿拉伯语的支持,而不会提供对其它基于RLP语言的支持。对于其它缺少有效许可证的语言,MongoDB的日志将会提供一个警报信息。此外。您可以将MongoDB日志的显示级别设置为 2 来将识别每种支持语言的调试信息记录下来。

您不需要语言拓展包,因为MongoDB暂时不支持这些RLP语言。

联系基础技术info@basistech.com 以得到RLP的备份以及一种或更多语言的许可证。查阅 http://www.basistech.com/contact/ 了解更多关于如何联系基础技术部门的信息。

流程

1

Download Rosette Linguistics Platform from Basis Technology.

From Basis Technology, obtain the links to download the RLP C++ SDK package file, the documentation package file, and the license file (rlp-license.xml) for Linux x64. Basis Technology provides the download links in an email.

Using the links, download the RLP C++ SDK package file, the documentation package file, and the license file (rlp-license.xml) for Linux x64.

注解

These links automatically expire after 30 days.

2

Install the RLP binaries.

Untar the RLP binaries and place them in a directory; this directory is referred to as the installation directory or BT_ROOT. For this example, we will use /opt/basis as the BT_ROOT.

tar zxvC /opt/basis rlp-7.11.1-sdk-amd64-glibc25-gcc41.tar.gz
3

Move the RLP license into the RLP licenses directory.

Move the RLP license file rlp-license.xml to the <BT_ROOT>/rlp/rlp/licenses directory; in our example, move the file to the /opt/basis/rlp/rlp/licenses/ directory.

mv rlp-license.xml /opt/basis/rlp/rlp/licenses/
4

Run mongod with RLP support.

To enable support for RLP, use the --basisTechRootDirectory option to specify the BT_ROOT directory.

Include any additional settings as appropriate for your deployment.

mongod --basisTechRootDirectory=/opt/basis

其它信息

查阅RLP快速启动手册或者Rosette 语义平台应用开发者手册的第二章来获取安装帮助。

为了调试任何RLP相关的问题,您可以设置 rlpVerbose 参数为 true (例如, --setParameter rlpVerbose=true )来查看RLP中的 INFO 消息。

警告

允许 rlpVerbose 会有一个性能支出,应该只在安装问题的疑难排除时启用。