MarkLogic方面和范围索引 [英] MarkLogic Facets and Range Indexes

查看:72
本文介绍了MarkLogic方面和范围索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在MarkLogic中使用应用程序构建器"创建了一个应用程序, 我需要添加一些方面以便在搜索引擎中显示文件或数据库的内容. 有人可以提供有关如何添加范围索引以驱动应用程序中各个方面的帮助吗?

I have created an application using the Application Builder in MarkLogic, I need to add some facets in order to display the contents of the file or database, in the search engine. Can someone please help as to how to add range indexes to drive the facets in the Application?

预先感谢 Swapneel

Thanks in Advance Swapneel

推荐答案

要构建构面,您需要可以在构面上绘制的范围索引.从http://localhost:8000/appservices,您可以使用App Services构建索引.在窗口顶部附近,选择内容数据库,然后单击配置".在出现的窗口中,单击范围索引"下的添加新".您将看到一个对话框,该对话框将帮助您处理索引.完成此操作后,请返回Application Builder并单击重新采样"按钮,以便Application Builder知道要检查新索引.

To build facets, you need range indexes that the facets can draw on. From http://localhost:8000/appservices, you can use App Services to build the indexes. Near the top of the window, select your content database, then click Configure. In the window that appears, click "Add New" under "Range Indexes". You'll get a dialog that will help you with the indexes. When you have finished that, go back to Application Builder and click the 'Resample' button so that Application Builder knows to check for new indexes.

其他方式:您也可以在端口8001上使用管理界面.阅读范围索引和词典管理员指南的部分将为您提供帮助.

Other ways: You can also use the Admin UI on port 8001. Reading the Range Indexes and Lexicons section of the Administrator's Guide will help you here.

从长远来看,您将需要编写索引(和其他配置)的脚本,以确保在不同环境中的配置一致.您可以直接使用管理API 编写脚本,也可以使用现有的工具,例如 Roxy

Longer term, you'll want to script the creation of indexes (and other configuration) to ensure consistent configuration across different environments. You can script it directly with the Management API, or you can use an existing tool, like Roxy or ml-gradle.

这篇关于MarkLogic方面和范围索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆